in reply to howto strip the first char of a string?
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\
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: howto strip the first char of a string?
by wfsp (Abbot) on Sep 08, 2004 at 13:34 UTC | |
by QM (Parson) on Sep 08, 2004 at 14:29 UTC | |
by gellyfish (Monsignor) on Sep 08, 2004 at 13:56 UTC |