http://www.perlmonks.org?node_id=188168


in reply to Re: Is this a correct way of obtaining input from a file?
in thread Is this a correct way of obtaining input from a file?

I used DamnDirtyApe's suggestion and it worked like a charm in getting the input. However, when it comes to querying UPS's website with the tracking number, Lynx passes back a bad request, probably because there's an invalid character still attached to the tracking number. How can I strip any unwanted characters out after the string has been chomped?