#perl - Mon 7 May 2007 between 16:34 and 16:39



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

Page: 2 9 16 23 30 37 44 51 58 65 72 

IrcArchive