Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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.
Comment on Re: What operator prepends?
Download Code

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 contemplating the Monastery: (2)
As of 2016-05-01 01:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    :nehw tseb si esrever ni gnitirW







    Results (441 votes). Check out past polls.