Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Indirect Filehandles + use strict = error

by TheDamian (Priest)
on Mar 14, 2006 at 10:20 UTC ( #536507=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $FH = "DATA"; open $FH, "<", $filename or croak "Cannot open file $
    +filename $!\n";
    
  2. or download this
    open my $FILE, '<', $filename
        or croak "Can't open '$filename': $OS_ERROR";
    
  3. or download this
        my $FH;
        open $FH, "<", $filename     
            or croak "Cannot open file $filename $!\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://536507]
help
Chatterbox?
[Corion]: A good morning and weekstart to you too, Discipulus!
Discipulus last day of work before holidays.. He put a reminder on his cell

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2018-06-25 07:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (126 votes). Check out past polls.

    Notices?