2007/9/11, Pavanvithal Torvi <[EMAIL PROTECTED]>:
>
>
> I wanted to ask others if this is expected behaviour.
Yes.

> If I make use of this feature will it cause compatibility issues with the
> later versions of perl.
>

Please don't use $a and $b as variable names,they are built-in
variables used by `sort` function.see `perldoc -f sort`.

Also your codes could be re-written simply,

my $x = "one/two/three/four/five";
my ($c,$d,$e,$f,$g) = split/\//,$x;

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to