Those are both perfectly reasonable ways of removing the first character of a string. Other far less reasonable ways might include:
and so forth.my @foo = split //; shift @foo; $_ = join '', @foo; or my $foo = reverse($_); chop($foo); $_ = reverse($foo); or $_ = unpack "xA*", $_;
/J\
In reply to Re: howto strip the first char of a string?
by gellyfish
in thread howto strip the first char of a string?
by valentin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |