Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Unable to resolve links...

by apl (Monsignor)
on Nov 05, 2010 at 11:53 UTC ( #869651=note: print w/replies, xml ) Need Help??


in reply to Unable to resolve links...

Try chomp on what you read from the file.

Replies are listed 'Best First'.
Re^2: Unable to resolve links...
by czech (Sexton) on Nov 05, 2010 at 17:52 UTC
    sorry my formatting was so poor. If you look closely at the reformatted post, you will find chomp is there. Thanks for the reply. Corwin
      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

        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://869651]
help
Chatterbox?
[robby_dobby]: This anonymonk's post reads weird to me
[robby_dobby]: Other than the content, that Chrome would not allow submitting code sounds like something funky going on there :P
[erix]: lazyness-driven inventio :)
[erix]: "the dog ate my homework"
[Eily]: looks more like "all my plates are broken and I don't understand why. Also I can't retrieve the broken parts because the elephant in the room is on the way"
[ambrus]: Eily: also webpages aren't displayed on my monitor no matter what I click with the mouse, and there's a blackout right now, could that be a problem?

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2017-04-25 13:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (453 votes). Check out past polls.