my $check = 'a'; $check++ for 1 .. 5;
my $check = 'cd'; substr $check, 0, 1, q();
Or, use a substitution:
my $check = 'sp'; $check =~ s/^.//;
In reply to Re: 2 basic questions
by choroba
in thread 2 basic questions
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |