$line =~ s/^\n//; #remove leading one
$line =~ s/\n$//; #remove last one or better use chomp($line)
In reply to Re: Remove newline character from start of string
by Marshall
in thread Remove newline character from start of string
by danj35
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |