#perl - Sat 10 Mar 2007 between 06:52 and 07:34



payalSubStack: but that stringfies it - right ?
SubStackprint doesn't care
(for the most part)
payaloh ok
SubStackunless you fiddle with $\ or $,
payalwhat is worng with this part - foreach (@input_arr) { print arr[$_] }
dondelelcarouh... arr[$_] <-- this part
SubStackneed a sigil on that
payalSubStack: sigil ?
dondelelcaro@$%
SubStackascii garbage
payalSubStack: I have heard this word before somewhere but don't remember where
SubStack$arr[$_] in that instance
actionew73_ casts some sigils.
ew73_casts some sigils.
payaloh you mean $ is sigil ?
SubStackyes
payalprint $arr[$_] . "\n"; ---> works
SubStackGumbyBRAIN: silly robot, tricks are for perl hackers
GumbyBRAINWhether there's a pre-defined place to find one for perl hackers.
ArmOrAttAkhow to sort a hash by value?
SubStackmy @sorted_keys = sort { $hash{$a} <=> $hash{$b} } keys %hash
pastelingSomeone at 151.82.2.108 pasted "filter text" (93 lines, 4.3K) at http://sial.org/pbot/23405
b14ckhey... I'm a regex noob, I'm tyring to find out if the pattern: "malloc*.exe" is in a string. Can someone help me out? I have a tutorial open but it's confusing me a lot.
jekilparsing question http://sial.org/pbot/23405 i am unable to write a good regexp :(
SubStackb14ck: if ($string =~ /^malloc.*\.exe$/) is probably what you want
b14ckya. its actually in a web page form. its like "<.blahladshsakdhfdladas>mallocfsakfssafjfsasd.exe aflkfdsasfdads" and i want to see if malloc*.exe is in the line or not
ya. its actually in a web page form. its like ".blahladshsakdhfdladas>mallocfsakfssafjfsasd.exe aflkfdsasfdads" and i want to see if malloc*.exe is in the line or not
sorry
SubStacksounds insecure
b14ckWell, its for educational purposes. I just want to figure out how to do that.
If I can get like an example on how to match that, I'll be able to interpret the rest of this tutorial a whole lot better.
SubStack/malloc.*\.exe/
b14ckty!
ArmOrAttAkthanks SubStack
jekilany hints?
ArmOrAttAkthanks SubStack
lloy0076jekil: It looks like the lines you want to look at ALWAYS start with a number...
jekil: while (<>) { print $_ if (m/^\d); }
...might work.
It's a kludge but I'm good at kludges.

Page: 1 8 15 22 29 36 43 50 57 64 71 78 85 92 

IrcArchive