Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: How to parse out unwanted characters in a text file using Perl

by Not_a_Number (Parson)
on Jun 10, 2011 at 19:26 UTC ( #909192=note: print w/replies, xml ) Need Help??


in reply to How to parse out unwanted characters in a text file using Perl

$str =~ s/[^data,]//g;

or perhaps you have some other definition of 'unwanted characters'?

  • Comment on Re: How to parse out unwanted characters in a text file using Perl
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://909192]
help
Chatterbox?
[Corion]: Hi karlgoethebier!
[karlgoethebier]: anybody ever noticed the double bracket operator: while (<<>>) {print;}?

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2017-07-21 07:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (319 votes). Check out past polls.