Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^5: Perl's feature to determine, in current point of loop, that this is the last one?

by talexb (Chancellor)
on Jan 25, 2022 at 21:24 UTC ( [id://11140865]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    
        print "Finally, we have $keys[-1].\n";
    }
    
  2. or download this
    First is q ..
    In the middle: w
    ...
    In the middle: i
    In the middle: o
    Finally, we have p.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-26 00:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found