Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 having an uproarious good time at the Monastery: (7)
As of 2014-09-03 03:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (35 votes), past polls