| payal | SubStack: but that stringfies it - right ? |
| SubStack | print doesn't care (for the most part) |
| payal | oh ok |
| SubStack | unless you fiddle with $\ or $, |
| payal | what is worng with this part - foreach (@input_arr) { print arr[$_] } |
| dondelelcaro | uh... arr[$_] <-- this part |
| SubStack | need a sigil on that |
| payal | SubStack: sigil ? |
| dondelelcaro | @$% |
| SubStack | ascii garbage |
| payal | SubStack: I have heard this word before somewhere but don't remember where |
| SubStack | $arr[$_] in that instance |
| action | ew73_ casts some sigils. |
| ew73_ | casts some sigils. |
| payal | oh you mean $ is sigil ? |
| SubStack | yes |
| payal | print $arr[$_] . "\n"; ---> works |
| SubStack | GumbyBRAIN: silly robot, tricks are for perl hackers |
| GumbyBRAIN | Whether there's a pre-defined place to find one for perl hackers. |
| ArmOrAttAk | how to sort a hash by value? |
| SubStack | my @sorted_keys = sort { $hash{$a} <=> $hash{$b} } keys %hash |
| pasteling | Someone at 151.82.2.108 pasted "filter text" (93 lines, 4.3K) at http://sial.org/pbot/23405 |
| b14ck | hey... 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. |
| jekil | parsing question http://sial.org/pbot/23405 i am unable to write a good regexp :( |
| SubStack | b14ck: if ($string =~ /^malloc.*\.exe$/) is probably what you want |
| b14ck | 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 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 |
| SubStack | sounds insecure |
| b14ck | Well, 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/ |
| b14ck | ty! |
| ArmOrAttAk | thanks SubStack |
| jekil | any hints? |
| ArmOrAttAk | thanks SubStack |
| lloy0076 | jekil: 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. |