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

Juerd's scratchpad

by Juerd (Abbot)
on Jun 01, 2004 at 17:07 UTC ( #358255=scratchpad: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    - void
    - item (Scalar)
    ...
        - ...
    - list
      - types, as with item context
    
  2. or download this
    $foo + $bar        # both sides in Num item context
    $foo ~ $bar        # both sides in Str item context
    ...
    my @bar  = @foo;   # right side in list context
    my $num = +@foo;   # right side in Num item context
    print $foo, @foo;  # both variables in Str list context
    
  3. or download this
    my %hash = (a => 'b', c => 'd');  # right side in list context
    my ($pair1, $pair2) = %hash;      # right side in list context
    ...
    $pair2.value    # >>> "d"
    (e => 'f').key  # >>> "e"
    +%hash          # >>> 2           # Num item context
    

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (11)
As of 2015-03-30 14:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:









    Results (649 votes), past polls