Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Populating an array

by Adam (Vicar)
on Mar 28, 2001 at 02:12 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://67657]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-16 21:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found