| BinGOs | Can I shorten that in someway like using an anonymous hashref ? |
| MitchM | i did a one-line multiple file replacement that would have taken maybe 16 or more in Perl maybe lots more. |
| unop | rhizo, 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 |
| MitchM | rindolf, but now i'm back to perl :) |
| rindolf | MitchM: perl can emulate awk in some respects. |
| MitchM | on one line? :) |
| rindolf | MitchM: can you nopaste your code? MitchM: did you use the awk pattern matches? |
| MitchM | nay - i didnt keep a copy of it. |
| action | BinGOs stamps his hooves |
| BinGOs | stamps his hooves |
| unop | rhizo, and perlop, if it's relevant still, what am i looking for in there? |
| MitchM | i 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 |
| rindolf | MitchM: I still don't understand how it would have been much more code in Perl. MitchM: have you looked at perlrun? |
| MitchM | i have not :) |
| rindolf | perldoc perlrun that is. MitchM: there's an IRC bot written in awk over at #awk It's called awkbot. |
| MitchM | cool :) |
| rindolf | I wonder if anyone's written a bot in O'Caml. There's lambdabot which is written in Haskell. |
| BinGOs | eval: my $mode = '@'; $mode = { qw(@ o % h + v) }->{$mode}; $mode |
| buubot | BinGOs: o |
| BinGOs | rolled my own answer. Thanks anyways. |
| rindolf | Hi PerlJam |
| action | CPAN upload: Devel-Size-0.66 (++++ ) by TELS |
| CPAN | upload: Devel-Size-0.66 (++++ ) by TELS |
| rhizo | unop, 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 |
| mmlj4 | and the not-so-referenced symbolics |
| unop | rhizo, 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 |
| rindolf | There's this thread in Perl-IL about "Not enough (good) Perl programmers" - http://perl.org.il/pipermail/perl/2007-February/thread.html#8460 |
| shorten | rindolf's url is at http://xrl.us/u523 |
| rindolf | MitchM: if you're writing a lot of scripts with Perl you really should read perldoc perlrun buubot: perldoc perlrun |
| buubot | perldoc perlrun is a command line that will display the documentation for the perl command line options. |
| rindolf | MitchM: it's also very useful for Golfs. |
| MitchM | rindolf, I'll take a look :) - thanks |