Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: my $x or my ($x)

by davidrw (Prior)
on Apr 04, 2006 at 13:24 UTC ( #541142=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      my @x = ('a' .. 'e');
      my $y = @x;
      my ($z) = @x;
      warn $y;  # 5
      warn $z;  # 'a'
    
  2. or download this
    function foo {
      my ($bar, $stuff, $blah) = @_;   # get the arguments
      ...
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2015-05-05 22:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (127 votes), past polls