Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Splitting on tabs then removing extra white space with map

by jwkrahn (Abbot)
on Sep 18, 2007 at 03:04 UTC ( [id://639541]=note: print w/replies, xml ) Need Help??


in reply to Splitting on tabs then removing extra white space with map

while ( <DATA> ) { s/\A\s+//; # Remove leading and s/\s+\z//; # trailing whitespace my @points = split /\s*\t\s*/; # split on tabs and surrounding wh +itespace print "\n\@points =\n", pp \@points; #More code here }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-03-29 09:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found