Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: What operator prepends?

by Roy Johnson (Monsignor)
on Jan 25, 2006 at 14:17 UTC ( #525450=note: print w/replies, xml ) Need Help??


in reply to What operator prepends?

It wasn't a useful enough operation to merit its own operator. However, you can use substr to much the same effect:
substr($str, 0, 0) = 'new prefix'; # or 4-arg form: substr($str, 0, 0, 'new prefix');

Caution: Contents may have been coded under pressure.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2016-10-01 19:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (7 votes). Check out past polls.