From d80182fb067de110a09af88969ab9844e11ce21d Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 25 Oct 1999 22:59:18 +0000 Subject: no_comment --- perl-install/commands.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install/commands.pm') diff --git a/perl-install/commands.pm b/perl-install/commands.pm index 805647215..bb64fc180 100644 --- a/perl-install/commands.pm +++ b/perl-install/commands.pm @@ -281,7 +281,7 @@ sub dd { my $u = "usage: dd [-h] [-p] [if=] [of=] [bs=] [count=]\n"; my ($help, $percent) = getopts(\@_, qw(hp)); die $u if $help; - my %h = (if => \*STDIN, of => \*STDOUT, bs => 512, count => undef); + my %h = (if => *STDIN, of => *STDOUT, bs => 512, count => undef); foreach (@_) { /(.*?)=(.*)/ && exists $h{$1} or die $u; $h{$1} = $2; @@ -308,7 +308,7 @@ sub head_tail { my ($h, $n) = getopts(\@_, qw(hn)); $h || @_ > 1 + bool($n) and die "usage: $0 [-h] [-n lines] []\n"; $n = $n ? shift : 10; - local *F; @_ ? open(F, $_[0]) || die "error: can't open file $_[0]\n" : (*F = \*STDIN); + local *F; @_ ? open(F, $_[0]) || die "error: can't open file $_[0]\n" : (*F = *STDIN); if ($0 eq 'head') { foreach () { $n-- or return; print } -- cgit v1.2.1