| friedo | I haven't touched Lisp in quite a long time |
| oMish | in 'perl -i~ -p -e ...', how do I add lines to the edited file in the END {} |
| rindolf | perlbot: java cover friedo: I've studied Common Lisp from "Practical Common Lisp". |
| friedo | I've been meaning to brush up on Haskell to re-learn a lot of functional stuff |
| rindolf | friedo: it's quite impractical. friedo: learn Haskell. |
| friedo | do you mean Lisp or FP in general is impractical? |
| rindolf | friedo: O'Caml is much more practical than Haskell, but has an uglier syntax. |
| perlygatekeeper | what's CPANPLUS? |
| rindolf | friedo: no, FP is sweet. friedo: well, not pure-FP. |
| friedo | I found a lot of the stuff in HOP to be quite useful |
| oMish | in 'perl -i~ -p -e ...', how do I add lines to the edited file in the END {} |
| hobbs | oMish: print. :) |
| rindolf | friedo: and I prefer FP in dynamically-typed languages. |
| hobbs | except... hmm |
| rindolf | friedo: strong typing is too limiting. friedo: I've now started to learn J. |
| oMish | hobbs: well, it did not work |
| perlygatekeeper | oMish, anything sent to STDOUT, as with the print command, will go to the file. Provided the file handle isn't closed |
| oMish | hmmm hmmmm hmmmmh |
| friedo | do filehandles get closed before END { } ? |
| oMish | perlygatekeeper: that's exactly the problem |
| hobbs | perlygatekeeper: by END time, stdout goes to stdout again. |
| oMish | i think in END{} it's already closed i think i need some feof() |
| hobbs | that might do it, yeah |
| oMish | is there feof() something ? |
| rindolf | Hi oMish |
| oMish | hellow |
| hobbs | it's just 'eof' |
| rindolf | friedo: J is the ultimate golfing language. |
| action | oMish trying |
| oMish | trying |
| action | CPAN upload: PAR-Packer-0.975 by SMUELLER |
| CPAN | upload: PAR-Packer-0.975 by SMUELLER |
| hobbs | and -f eof has an example of how to handle what you want |
| bitdancer | Can anyone point me at an example of using CPAN::Mini (or anything else) to mirror just a particular selection of CPAN files? |
| hobbs | there are some complications when using eof on ARGV. Read the perldoc _first_ |
| oMish | still doesn't work |
| hobbs | of course it doesn't. You didn't read the perldoc first. |