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

Re: On Scalar Context ("list")

by tye (Cardinal)
on Apr 23, 2004 at 18:14 UTC ( #347699=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -wl
    use strict;
    ...
          scalar( (@arr,@a2z)[@idx] );
    print        '@arr[@idx]:        ',
          scalar( @arr[@idx] );
    
  2. or download this
    Useless use of private array in void context at scalar.pl line 9.
    (@arr,@a2z):       26
    (@arr,@a2z)[@idx]: 15
    @arr[@idx]:        15
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2014-08-31 02:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls