Re: perlfaq7: How do I skip some return values?

[email protected] ("Sean M. Burke")
Newsgroups perl.documentation,perl.cvs.perlfaq
Message-ID <[email protected]>
At 23:41 2002-06-16 -0500, _brian_d_foy wrote:
>for your comments
>+You can also use a list slice to select only the elements that
>+you need:
>+
>+       ($dev, $ino, $uid, $gid) = ( stat($file) )[0,1,4,5];

Excellent!

--
Sean M. Burke    http://www.spinn.net/~sburke/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.