#perl - Wed 9 May 2007 between 14:17 and 14:22



Yaakoveval: $_="a1b2c3"; $r="(\\d)"; $s=q'"${1}D"'; s/$r/eval($s)/eg; print
buubotYaakov: a1Db2Dc3D 1
DavemanABCDEFG!
Teamsteri understand
ok great - thanks for taking the time out for me
maukeI chose to use qq\0 \0 instead of " " because \0 is less likely to appear in a config file
Teamsterunderstood, makes sense
Yaakovoops. Stray q in there.
:)
mauke(with the first version, if $replacewith = 'foo"bar', we get eval '"foo"bar"', which is a syntax error)
Davemanqua?
simcop2387GumbyBRAIN: qua
GumbyBRAINEnter, savetmps, [ pushmark, push, pushback ], call_sv, spagain, freemtmps leave.
DavemanO.o
YaakovGumbyBRAIN: evaluate simcop2387
GumbyBRAINwhat is simcop studying?
actionDaveman high-fives simcop
Davemanhigh-fives simcop
FuzzyBis there a way to use a while loop instead of a foreach loop to itterate through an array while the array still has elements?
Davemanheehee :)
Gumbybrain: Praise Yaakov
GumbyBRAINHow can i get it away to yaakov.
simcop2387hey Yaakov
Davemanmail it?
simcop2387whats up
YaakovHello, simcop2387.
Hello, Daveman.
maukeFuzzyB: like while (@array)?
YaakovI am talking to you from my shiny new MBP.
Woo.
DavemanHow's things simcop?
You done lately?
simcop2387Daveman: pretty good, been helping my parents get moved in to their new house
FuzzyBeval my @array= ( 1, 2, 3 ); while (@array) { my $test = pop(@array); print $test; }
eval: my @array= ( 1, 2, 3 ); while (@array) { my $test = pop(@array); print $test; }
buubotFuzzyB: 3 2 1 0
Daveman:)
actionLeoNerd huggles Term::Size + Text::Wrap
LeoNerdhuggles Term::Size + Text::Wrap
DavemanWhat a nice gesture.
LeoNerdNow all my error messages line up neatly on the screen :)
maukeeval: for (reverse (1, 2, 3)) { print; }

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

IrcArchive