Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: How to delete trailing spaces from array elements?

by radiantmatrix (Parson)
on Aug 02, 2007 at 17:16 UTC ( [id://630342]=note: print w/replies, xml ) Need Help??


in reply to Re^2: How to delete trailing spaces from array elements?
in thread How to delete trailing spaces from array elements?

Ok, if you insist:

$/=' ';for(@arr1){1while chomp}

Is 8 chars shorter. ;-)

<radiant.matrix>
Ramblings and references
The Code that can be seen is not the true Code
I haven't found a problem yet that can't be solved by a well-placed trebuchet

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-24 12:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found