Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 rifling through the Monastery: (8)
As of 2015-07-07 03:05 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 (86 votes), past polls