Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Re: extra space with /

by alfie (Pilgrim)
on Apr 03, 2001 at 11:06 UTC ( #69225=note: print w/replies, xml ) Need Help??

in reply to Re: extra space with /
in thread extra space with /

First of all: Use perlfunc:chomp on your input to get rid of the trailing newline. On the other hand, that shouldn't be the problem you currently have.

It seems to me that you might have the space in the file you read, with a quick lookthrough I don't see the problem in the code (or, I might just be distracted ;). I personally would use the following for asigning the txt1 and txt2:

my $textr1 = $ref->{'txt1'}; my $textr2 = $ref->{'txt2'};
No need to put the whole ref in quotes, and I think it's cleaner if you put the key in quotes.

Replies are listed 'Best First'.
Re: Re: Re: extra space with /
by malaga (Pilgrim) on Apr 03, 2001 at 11:09 UTC
    yeah, i'll keep working on it. i don't think it's the file i'm reading either, because if i just take that one slash out, there is no extra space. and if i open the file and look at it, there is no space. it's weird. but true, so i better figure it out.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2022-05-20 13:50 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (73 votes). Check out past polls.