Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: Re: Appending one array onto another

by sauoq (Abbot)
on Jun 10, 2003 at 09:33 UTC ( #264590=note: print w/replies, xml ) Need Help??

in reply to Re: Appending one array onto another
in thread Appending strings from one array onto strings of another

And using aliasing to our advantage but avoiding map in void context yields

$_ .= $d[-1 + push @d, shift @d] for @z;
I'm not convinced that it's at all better than the first one in the OP though. This is a bit obscure for no really good reason.

"My two cents aren't worth a dime.";

Replies are listed 'Best First'.
Re: Re: Re: Appending one array onto another
by Skeeve (Parson) on Jun 10, 2003 at 09:38 UTC
    I like that one!

    It's obscure, yes. But not for "no really good reason" but for avoiding an aditional variable. But now as I think of it ;-) Okay: It's no really good reasone. Maybe I should think about my taking part in perl-minigolf and obfuscation.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://264590]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2020-07-08 11:16 GMT
Find Nodes?
    Voting Booth?

    No recent polls found