#perl - Fri 2 Mar 2007 between 12:36 and 12:53



BinGOsCan I shorten that in someway like using an anonymous hashref ?
MitchMi did a one-line multiple file replacement that would have taken maybe 16 or more in Perl
maybe lots more.
unoprhizo, i dont want qq because the variable might not be statically defined there too .. the reason i asked is because it will be treated literally as-is
MitchMrindolf, but now i'm back to perl :)
rindolfMitchM: perl can emulate awk in some respects.
MitchMon one line?
:)
rindolfMitchM: can you nopaste your code?
MitchM: did you use the awk pattern matches?
MitchMnay - i didnt keep a copy of it.
actionBinGOs stamps his hooves
BinGOsstamps his hooves
unoprhizo, and perlop, if it's relevant still, what am i looking for in there?
MitchMi used gawk - and there was some pattern matches
basicly just wanted to take the last column from one file
and add it to another file
rindolfMitchM: I still don't understand how it would have been much more code in Perl.
MitchM: have you looked at perlrun?
MitchMi have not :)
rindolfperldoc perlrun that is.
MitchM: there's an IRC bot written in awk over at #awk
It's called awkbot.
MitchMcool :)
rindolfI wonder if anyone's written a bot in O'Caml.
There's lambdabot which is written in Haskell.
BinGOseval: my $mode = '@'; $mode = { qw(@ o % h + v) }->{$mode}; $mode
buubotBinGOs: o
BinGOsrolled my own answer. Thanks anyways.
rindolfHi PerlJam
actionCPAN upload: Devel-Size-0.66 (++++ ) by TELS
CPANupload: Devel-Size-0.66 (++++ ) by TELS
rhizounop, if the name of the var to be interpolated is not known until runtime, you want to read the "Symbolic references" and "Not-so-symbolic references" sections of perldoc perlref
mmlj4and the not-so-referenced symbolics
unoprhizo, but i do know the name of the variable .. i just dont know what it will contain at runtime .. in some cases, that unknown might be a literal like "$ENV{HOME}/.config" and it's that i want expanding
rindolfThere's this thread in Perl-IL about "Not enough (good) Perl programmers" - http://perl.org.il/pipermail/perl/2007-February/thread.html#8460
shortenrindolf's url is at http://xrl.us/u523
rindolfMitchM: if you're writing a lot of scripts with Perl you really should read perldoc perlrun
buubot: perldoc perlrun
buubotperldoc perlrun is a command line that will display the documentation for the perl command line options.
rindolfMitchM: it's also very useful for Golfs.
MitchMrindolf, I'll take a look :) - thanks

Page: 3 10 17 24 31 38 45 52 59 66 73 80 87 

IrcArchive