Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Referencing Array Slices as Lists?

by BBQ (Curate)
on Sep 05, 2000 at 04:34 UTC ( [id://31060]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # example 1
    my @ary = qw(
    ...
    sub printref {
        print "$$_\n" for @_;
    }
    
  2. or download this
    # example 2
    my @ary = qw(
    ...
        print "$$ary[$_]\n" for @_;
    
    }
    
  3. or download this
    # example 3
    my @ary = qw(
    ...
        my $ary = shift;
        print "$_\n" for @$ary;
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found