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

Printing the last few elements of an array.

by jonnyfolk (Vicar)
on Dec 16, 2002 at 11:18 UTC ( [id://220171]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        open (FILE, "$record") or die 'can\'t open record page: $!';
        my @record =<FILE>;
    ...
        
        my $record1 = join "<br>", @record1;
    
  2. or download this
    @record = reverse @record;
        
    ...
        $count += 1;
        }
    print "@record1";
    

Log In?
Username:
Password:

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

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

    No recent polls found