Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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: (14)
As of 2015-07-31 19:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (280 votes), past polls