Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: replace/substituion 4th field

by jwkrahn (Monsignor)
on Feb 20, 2013 at 17:04 UTC ( #1019808=note: print w/ replies, xml ) Need Help??


in reply to Re: replace/substituion 4th field
in thread replace/substituion 4th field

chomp $line; my @fields = split "," , $line; ... print join( ',', @fields ) . "\n" ;

That won't work correctly on the data provided.    You need to change split "," , $line to split "," , $line, -1.


Comment on Re^2: replace/substituion 4th field
Select or Download Code
Re^3: replace/substituion 4th field
by tmharish (Friar) on Feb 21, 2013 at 06:39 UTC

    Absolutely - Updated above.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (12)
As of 2015-07-06 17:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (77 votes), past polls