Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Indirect Filehandles + use strict = error

by spiritway (Vicar)
on Mar 14, 2006 at 02:08 UTC ( [id://536444]=note: print w/replies, xml ) Need Help??


in reply to Indirect Filehandles + use strict = error

I think what you're looking for is something like this:

use strict; use warnings; # and so on... open my $FH, "<", $filename or croak "and so on...\n";

There was no need to assign the string DATA to $FH.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-24 20:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found