Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
There's more than one way to do things
 
PerlMonks  

Scalars, Lists, and Arrays

by ton (Friar)
on Apr 13, 2001 at 03:52 UTC ( #72247=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    
    ...
    print "$temp\n";
    $temp = @array[0..2];
    print "$temp\n";
    
  2. or download this
    3
    baz
    foo
    foo
    baz
    
  3. or download this
    sub func1
    {
    ...
        my @array = ('foo', 'bar', 'baz');
        return @array;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2013-05-24 06:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (498 votes), past polls