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

LVALUE refs

by BrowserUk (Patriarch)
on Feb 13, 2003 at 17:11 UTC ( [id://235029]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $s = 'The quick brown fox jumps over the lazy dog';
    print ${ \substr($s, $_, 1) } for 0 .. length($s)-1;
    # Output
    The quick brown fox jumps over the lazy dog
    
  2. or download this
    my @refs;
    push @r, \substr($s, $_, 1) for 0 .. length($s) -1;
    print $$_ for @refs;
    # Output
    ggggggggggggggggggggggggggggggggggggggggggg
    
  3. or download this
    print @refs;
    # Output
    LVALUE(0x1bd5270) LVALUE(0x1bd5270) LVALUE(0x1bd5270) LVALUE(0x1bd5270
    +) LVALUE(0x1bd5270) LVALUE(0x1bd5270) ...
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://235029]
Approved by broquaint
Front-paged by broquaint
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-19 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found