The smallest alternative is:
Under strictures one variant is:
x
With the typo/trick question "corrected" an interesting alternative is:
my $string = "hello world"; $string=~s/(\w+)$/print$1/e; </c>$string =~ s/(\w+)$/print $1/e;
In reply to Re: substr regex alternative
by GrandFather
in thread substr regex alternative
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |