Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Bug or WAD in lvalue substr? (again.)

by ikegami (Patriarch)
on May 27, 2008 at 19:39 UTC ( [id://688727]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    >perl -MO=Concise -e"substr($x,0,1)=''"
    9  <@> leave[1 ref] vKP/REFC ->(end)
    ...
    5           <$> const[IV 0] s ->6
    6           <$> const[IV 1] s ->7
    -e syntax OK
    
  2. or download this
    substr($x,0,1) =~ s/(.)/uc $1/e;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-23 19:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found