Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: On Scalar Context ("list")

by tye (Sage)
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?
[Corion]: Oooh. I had hoped that X::Tiny would be an X11 client or X11 server, but it is an exception framework :-)
[MidLifeXis]: How many languages would that 'Ex' alias handle. ETOOCUTE

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (11)
As of 2017-02-27 11:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (383 votes). Check out past polls.