Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

scalar my vs list my

by merlyn (Sage)
on Apr 27, 2001 at 01:11 UTC ( #75915=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my ($filename) = "/path/to/file"; 
        my ($filemode) = "immolate"; 
        my ($opmode)   = "seek"; 
        my ($filetype) = "image/gif"; 
    
  2. or download this
    my ($filemode) = ("immolate"); # list context
    
  3. or download this
    my $filemode = "immolate"; # scalar context
    
  4. or download this
    my $count = @_; # get the length
    
  5. or download this
    my ($count) = @_; # get the first arg
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2016-02-14 02:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (454 votes), past polls