Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^7: A Perl aptitude test

by BrowserUk (Pope)
on Jul 16, 2013 at 18:46 UTC ( #1044640=note: print w/replies, xml ) Need Help??

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.

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^8: A Perl aptitude test
by marinersk (Priest) on Jul 16, 2013 at 20:04 UTC
    In my current version of Perl, I cannot reproduce the problem.

    Gut says your first guess a decade ago was right -- perhaps an old version of Perl (even for then). Seems a likely culprit.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1044640]
[erix]: swedes in winter have too much time on their hands

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2018-02-22 15:28 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (294 votes). Check out past polls.