Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Populating an array

by Adam (Vicar)
on Mar 28, 2001 at 02:12 UTC ( #67657=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
        or die "Failed to open 'filename', $!";
    my @contents = <FILEHANDLE>;
    close FILEHANDLE;
    
  2. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
        or die "Failed to open 'filename', $!";
    my @contents = <$file>;
    $file->close();
    
  3. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
        @elements = <$file>;
    }
    $file->close();
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2021-05-10 06:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (104 votes). Check out past polls.

    Notices?