or$foo= "string"; (undef, $foo)=split //,$foo,2; print $foo;
update changed to add /s in second example after bickering senslessly with wog.$foo= "string"; ($foo)=$foo=~/.(.*)/s; print $foo;
In reply to (boo)Re: Removing the first character from a variable
by boo_radley
in thread Removing the first character from a variable
by Kiko
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |