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

Re: Delete space at the end of a hash element

by SuicideJunkie (Vicar)
on Mar 26, 2013 at 17:45 UTC ( #1025565=note: print w/replies, xml ) Need Help??


in reply to Delete space at the end of a hash element

This sounds a bit like an XY problem...
The best way to clean up a mess is to not make one in the first place

Why not simply trim the whitespace while you are first building the hash?

  • Comment on Re: Delete space at the end of a hash element

Replies are listed 'Best First'.
Re^2: Delete space at the end of a hash element
by Laurent_R (Abbot) on Mar 26, 2013 at 21:51 UTC
    I fully agree. Clean up the data before you store it in the hash, if you can.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1025565]
help
Chatterbox?
[marto]: good morning all, sane dots all round
[Corion]: Hi marto! I hope all is well!
[marto]: Corion, pretty much. How are things? You were at LPW?

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2016-12-07 09:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (125 votes). Check out past polls.