in reply to Re^6: A Perl aptitude test
in thread A Perl aptitude test
I'm glad you found it useful :)
But, I still don't get your problem with using file handles stored in hash elements with close when strict and warnings are enabled?
C:\test>perl -mstrict -wE" open $f{w},'<words.txt'; print ~~readline($ +f{w}); close $f{w}" aa
I can never work out how to use them with the angle bracket (<>) form of readline, but no problem with open or close.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^8: A Perl aptitude test
by marinersk (Priest) on Jul 16, 2013 at 20:04 UTC |