Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Comparing parts of 2 strings in an array and deleting one

by Amblikai (Beadle)
on Nov 29, 2013 at 14:21 UTC ( #1064957=note: print w/ replies, xml ) Need Help??


in reply to Re: Comparing parts of 2 strings in an array and deleting one
in thread Comparing parts of 2 strings in an array and deleting one

Thanks for your reply!

Maybe i was thinking along the right lines using a hash. However, your way is a lot more concise since i don't explicitly have to compare the values first before i use a hash. Thanks!


Comment on Re^2: Comparing parts of 2 strings in an array and deleting one
Re^3: Comparing parts of 2 strings in an array and deleting one
by Corion (Pope) on Nov 29, 2013 at 14:25 UTC

    I'm sorry - I completely missed that you are already using a hash. I did not read your code closely enough and thought you were using two loops. So you were quite close, and just missed the step from using the keys to remember what things you've seen to also using the values to remember the original format.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2014-09-22 00:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (176 votes), past polls