in reply to HP-UX best practices

$FILE="/etc/mnttab"; open FILE or die "Can't open $FILE: $!";
Wow. I learn something new everyday: the one-argument form of open:
If EXPR is omitted, the global (package) scalar variable of the same name as the FILEHANDLE contains the filename.

Update: see also Single Argument Open


push @mnttab, ($lv, $fs) } %mnttab = @mnttab;
You can eliminate the array as follows:
$mnttab{$lv} = $fs; }

See also:

Replies are listed 'Best First'.
Re^2: HP-UX best practices
by rustic (Monk) on May 25, 2012 at 07:18 UTC
    Appreciate the tip. I learn something new as well.