Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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

Replies are listed 'Best First'.
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?
[tye]: disable /proc and then see what it does?
[davido]: then it reads from /etc/passwd to decide who my uid is.
[davido]: sorry, typed that before you asked me to disable proc
[davido]: but you stumped me; don't know how to disable proc.
[tye]: I don't know if you can just dismount, but I thought so.
[davido]: yeah, umount -f isn't powerful enough.
[tye]: probably something in the init subsystem that does the mounting that you could disable and reboot.
davido needs to close laptop to board flight home from yapc.
[davido]: I'll look into it in a few hours probably.

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2017-06-23 20:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (554 votes). Check out past polls.