Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: why this works? quoted strings

by mrstlee (Beadle)
on Oct 25, 2011 at 16:07 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://933645]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (8)
As of 2024-04-24 10:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found