perl -le "$f='hello world'; $f=~s!^.!!; print $f" perl -le "$f='hello world'; $f=~s!.!!; print $f"
should be
perl -le "$f='hello world'; $f=~s!^.!!s; print $f" perl -le "$f='hello world'; $f=~s!.!!;s print $f"
The first character could be a newline.
In reply to Re^2: Chop command that removes the first character
by ikegami
in thread Chop command that removes the first character
by mosh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |