You were very close. You need a list slice.
$result = (split /:/, <FILEHANDLE>)[3];
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: perlish way of splitting file records
by davorg
in thread perlish way of splitting file records
by narashima
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |