[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Need a little confusion?



On May 10, Sven Neuhaus said:

>sub x {
>        my @a;
>        my $b = [ qw(a b c) ];
>        return [
>                map { [ '??', $_ ] } @a,
>                map { $_; } @$b
>        ];
>}

I don't know what you were trying to do...

  return [ map [ '??', $_ ], ( @a, @$b ) ];

is what it boils down to...

-- 
Jeff "japhy" Pinyan      japhy@pobox.com      http://www.pobox.com/~japhy/
Are you a Monk?  http://www.perlmonks.com/     http://forums.perlguru.com/
Perl Programmer at RiskMetrics Group, Inc.     http://www.riskmetrics.com/
Acacia Fraternity, Rensselaer Chapter.         Brother #734


==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe