Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: split line from one point

by raybies (Chaplain)
on Oct 19, 2011 at 14:47 UTC ( #932424=note: print w/replies, xml ) Need Help??


in reply to split line from one point

While all the above posts are correct, you're not understanding what "split" does...

what you want is the substitution operator:

s/T/,/;

(Essentially you're trying to substitute the 'T' for the ',') then just print, you don't even need the $a variable.

cheers!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://932424]
help
Chatterbox?
shmem puts down the Canon garments and dresses as Chancellor
[vrk]: Congratulations. You should have Cookies
[shmem]: thanks vrk - but I'll rather have a plate of "silly con charme"
Lady_Aleena is trying to explain perl regexen to people right now and explaining how variables expand in regexen.

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2017-04-28 09:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (520 votes). Check out past polls.