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

Re^3: Unable to resolve links...

by czech (Sexton)
on Feb 14, 2012 at 00:35 UTC ( #953576=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Unable to resolve links...
in thread Unable to resolve links...

In the end, it turned out there was a whitespace character at the end of the string. I guess the moral of this story is - you can never be too careful about testing your input, and never assume you know what's in your data. Thanks for all your help everyone. Corwin


Comment on Re^3: Unable to resolve links...
Re^4: Unable to resolve links... (>chomp)
by tye (Cardinal) on Feb 14, 2012 at 01:42 UTC

    I have long advocated using s/\s+$// over chomp because I consider anything where trailing whitespace matters to simply be broken (it also is useful in that it prevents a stray "\r\n" line ending from being a problem).

    - tye        

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2015-07-03 11:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (51 votes), past polls