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

Re^3: $# -variable?

by reneeb (Chaplain)
on Jul 27, 2006 at 12:59 UTC ( #564059=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    use strict;
    ...
    for my $i($[ .. $[ + (scalar(@array) - 1) ){
        print $array[$i],"\n";
    }
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    for my $i($[ .. $#array ){
        print $array[$i],"\n";
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2020-02-22 15:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (101 votes). Check out past polls.

    Notices?