To all who answered my question, thank you very much. It was quite a
help. The idea was to remove the trailing white space character
permanently. I think I have enough to go on from here. Thank you again.

Al

Mark Anderson wrote:
> 
> > But, could someone explain the meaning of the "$" in the above expression,
> > s/\s$// .
> 
> The $ looks for end of line/end of string.  This is expression is saying
> take the whitespace character followed by end of line and replace it with
> nothing.  If there is no whitespace character at the end of the line, it
> does nothing.
> 
> > How would I incorporate in the expression the $string which occurs before
> > the white space? (is that what the "$" is for?)
> 
> This line:
> > >       $HASH{$key} =~ s/ $//;
> changes the value of the variable $HASH{$key} so that it no longer has the
> literal space at the end.
> 
> We're probably all getting a little confused at this point.  Do you want to
> chop off the space forever, or do you want a new variable that has the value
> of the old variable without the space?
> 
> $tmpvar = ($HASH{$key} =~ /(.*)\s$/);
> 
>                 Hope this helps,
>                                 /\/\ark
> 
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to