in reply to silly question

the only way i come up with is using split twice...
$args{(split/=/)[0]}= (split/=/)[1] foreach (@ARGV);

Replies are listed 'Best First'.
RE: Re: silly question
by snowcrash (Friar) on Apr 27, 2000 at 19:04 UTC
    hah, got another one: two splits less but @ARGV is destroyed :)
    s!(.+)=(.+)!$args{$1}=$2!e foreach (@ARGV);