Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: checking bareword-filehandle

by johngg (Abbot)
on Aug 06, 2012 at 13:14 UTC ( #985701=note: print w/ replies, xml ) Need Help??


in reply to checking bareword-filehandle

Wrap the print in an eval perhaps?

Cheers,

JohnGG


Comment on Re: checking bareword-filehandle
Download Code
Re^2: checking bareword-filehandle
by moritz (Cardinal) on Aug 06, 2012 at 13:20 UTC
      seems not to work in my old Perl (5.8.8):
      use strict; use warnings; no warnings qw(unopened); open HUBBA, "/hubba"; print HUBBA "hubba";
      Produces a warning "print() on closed filehandle HUBBA at t line 6."

      Guess I have to disable all warnings...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://985701]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2014-07-13 22:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (252 votes), past polls