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

Re: Removing delimiter

by helgi (Hermit)
on Oct 02, 2003 at 16:07 UTC ( #295960=note: print w/ replies, xml ) Need Help??


in reply to Removing delimiter

You're getting two things mixed up. The code you were using is meant to be run from the command line, not inside a script. Your script should look something like:

#!C:/Perl/bin/perl.exe -pi.bak tr/,//d;

And run it like so:

C:\>script.pl testdata.txt
I hope this helps. This of course assumes that you just want to remove the commas and not replace them with anything else.


--
Regards,
Helgi Briem
hbriem AT simnet DOT is


Comment on Re: Removing delimiter
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2016-02-06 18:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (235 votes), past polls