Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: 2 basic questions

by karlgoethebier (Curate)
on Apr 29, 2013 at 14:35 UTC ( #1031220=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $result = (split "", "ab")[(length(qq(ab))-1)];
    
    print $result;
    
  2. or download this
    $result = pop @{ [ split( "", "ab" ) ] };
    
    ...
    
    print qq($result\n);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2014-10-02 17:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (67 votes), past polls