or, uhm...
$x = substr($x.$y, -(length($y) * ($y =~ s/^$y$/$x/)), length($y));
update: substr, not suystr. sorry. Thanks John.
In reply to Re: Re: Re: Re: Exchanging Variables
by mischief
in thread Exchanging Variables
by Mr.T
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |