Pedro Antonio Reche wrote:
> chop($program); Don't use chop. Use chomp. I suppose there are some contexts in which the use of chop would be appropriate, but there is also a good chance that is is cutting off critical data, since it arbitrarily shortens the string by one character, regardless of which character it is. The chomp function is more intelligent, specialized to remove the various line or string terminators, but to leave the string alone if the last character is a printing character. I don't know its behavior with trailing spaces, but you could test it pretty easily: my $string = "Hello, "; chomp $string; print "$stringGoodbye\n"; Yep it presreves trailing spaces. Just remove troublesome and varying end-of-X markers. Joseph Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]