Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: why this works? quoted strings

by mrstlee (Beadle)
on Oct 25, 2011 at 16:07 UTC ( #933645=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print "My scalar = ${\(my $scalar = 5)}\n";
    print "My array = @{[(0..9)]}\n";
    ...
    print "My array returned by anonymous subroutine = @{[do {(0..9)}]}\n"
    +;
    print "My array formatted with join = ${\(join '*',(0..9))}\n";
    print "My hash treated as array   = @{ [my %h = (0..9)] }\n";
    
  2. or download this
    My scalar = 5
    My array = 0 1 2 3 4 5 6 7 8 9
    ...
    My array returned by anonymous subroutine = 0 1 2 3 4 5 6 7 8 9
    My array formatted with join = 0*1*2*3*4*5*6*7*8*9
    My hash treated as array   = 0 1 2 3 4 5 6 7 8 9
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2014-09-30 10:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (363 votes), past polls