Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: If you believe in Lists in Scalar Context, Clap your Hands

by ikegami (Pope)
on Oct 23, 2008 at 22:55 UTC ( #719187=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $r = 'a'..'z' ;            # Case 4 -- error
    
  2. or download this
    $r = (@r, @r) ;
    $v = (%r, %r) ;
    
  3. or download this
    use strict;
    use warnings;
    ...
    my $r1 = ( print_context(), print_context() );
    # Void
    # Scalar
    
  4. or download this
    my $r2 = sub { ( print_context(), print_context() ) }->();
    # Scalar
    # Scalar
    
  5. or download this
    $r = () = 1..27 ;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://719187]
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: (9)
As of 2014-07-31 11:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (248 votes), past polls