Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: File length ??

by Aristotle (Chancellor)
on Sep 12, 2002 at 18:36 UTC ( [id://197306]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while(<DATA>){
        next if $_ eq $/;
        push @data, $_;
    ...
    # shorter:
    
    $_ ne $/ and push @data, $_ while <DATA>;
    
  2. or download this
    while(<DATA>){
        chomp;
        next if $_ eq '';
        push @data, $_;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-25 07:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found