my $value=4321; my $drop_top_digit = $value % 10**(length($value) - 1); # Returns "321"
"When you are faced with a dilemma, might as well make dilemmanade. "
In reply to Re: Remove leading character from string
by NetWallah
in thread Remove leading character from string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |