Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: parsing text file

by schumi (Hermit)
on Apr 08, 2002 at 18:03 UTC ( #157496=note: print w/replies, xml ) Need Help??


in reply to parsing text file

On the basis of the same assumptions ViceRaid makes above, you could also do the following:

$line =~ s/\t{2,}/\t/g;

This only matches on occurences of two or more tabs, and hence would prevent any single tabs within your data from being stripped.

--cs

There are nights when the wolves are silent and only the moon howls. - George Carlin

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2022-01-17 09:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (51 votes). Check out past polls.

    Notices?