in reply to using List::MoreUtils::zip with anon arrays ?

Try:

my $stat = { zip @{[qw(dev ino mode nlink uid gid rdev size atime mtime ctime blksi +ze blocks)]}, @{[ stat '/tmp' ]} };
Not that it's particularly nice to look at, but it does seem to satisfy the interpreter, at a likely cost to the runtime speed...

Replies are listed 'Best First'.
Re^2: using List::MoreUtils::zip with anon arrays ?
by leocharre (Priest) on Aug 28, 2006 at 20:12 UTC
    Yeah, sure does make it happier. Thank you!

    I'm wondering now if this is too 'clever' to be using in production code. Maybe zip should take lists as well as actual arrays?

    There must be some internal reason for why the developers did it this way... ? Over my head.