#perl - Tue 27 Mar 2007 between 07:41 and 08:31



somians/match/regexp/
Botjeescape them?
somianUse single quotes as the regexp expression delimiter.
That's got to be in the vicinity of the "Quote and quote-like operators" section of the manual
s/section/area/
ImKiddescaping is what I've been doing: s/\$/\\\$/g ; s/\?/\\\?/g .....
actionCPAN upload: App-BackupAndRestore-0.02 by HOOO
CPANupload: App-BackupAndRestore-0.02 by HOOO
actionCPAN upload: App-BackupAndRestore-0.03 by HOOO
CPANupload: App-BackupAndRestore-0.03 by HOOO
somianEscaping is not always the answer. You can run but you can never outrun yourself.
sbingnersomian, I did that before
I fell on my face as soon as I did it though
somianHeh ;-)
ImKiddin fact I would need a 1level iterpolation, so I need to m/$var/ but $var can contain Dollars I don't wanna interpolate :)
sbingnerImKidd, uh... it doesn't
ImKidd, perl -e '$test = "\$t2"; $t2 = 2; $test =~ s/$t2//; print "$test\n";' <-- prints "$t"
ImKiddnice example sbingner, I don't want exactly this, but now I hve the pointer to work on it . thx
the_man_mountainggg
haha
my little bro type those
stupid little bro lol
loiicHi
how to you cast a variable to a numeric value?
i'd like to check if my input is equal to 0 1 2 3 4, what's the easiest way to do it
Sir_Jfor ... (0..4) ?
loiici'd like to avoid checking if $var == 0 || $var == 1|| etc
whoevereval: $foo = "0"; if ($foo == 0) return "zero"; return "not zero";
buubotwhoever: Error: syntax error at eval line 1, near ") return"
f3ewjust use the numeric operator
whoevereval: $foo = "0"; if ($foo == 0) { return "zero"; } return "not zero";
buubotwhoever: zero
f3ewwhoever, missing }{
whoeversry, too much C# at work :p
loiicf3ew: numeric operator trigger an error if the value isnt numeric
whoeverloiic: eval: $foo = "0"; if ($foo =~ m/\d+/) { return "numeric"; } return "not numeric";
buubotloiic: numeric
Botjecrack a nut with a sledgehammer: $var =~ /^[01234]$/
f3ewBotje, TMTOWTDI
Botjelies.
Sir_JI'm trying to compile app which uses perl
http://rafb.net/p/DBojAA92.html <-- that perl package I need ?

Page: 4 11 18 25 32 39 46 53 60 67 74 81 88 95 102 109 116 

IrcArchive