Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Delete unmatched quotes from a delimited file?

by Buckaroo Buddha (Scribe)
on Jul 24, 2001 at 19:48 UTC ( #99376=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    |value 1|value two|"|Value 3 was "NULL"|2001/06/06|
    
  2. or download this
    perl -pi.bak -e "s/\|\"\|/\|\|/g" filename
    
  3. or download this
    open OUTFILE, ">>@ARGV[0].dat";
    while (<>) {
    ...
        print OUTFILE $_;
    }
    close OUTFILE;
    
  4. or download this
    while (<>) {
        split /\|/;
    ...
        }
        print $output;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://99376]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2022-01-27 14:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (70 votes). Check out past polls.

    Notices?