From 34de22dd6ede167a09e3a3ee571665ba2c647f94 Mon Sep 17 00:00:00 2001 From: Larry Wall Date: Fri, 9 Nov 1990 13:38:50 +0000 Subject: perl 3.0 patch #40 patch #38, continued See patch #38. --- eg/who | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'eg/who') diff --git a/eg/who b/eg/who index 6543908853..8c9a0507db 100644 --- a/eg/who +++ b/eg/who @@ -1,8 +1,8 @@ #!/usr/bin/perl # This assumes your /etc/utmp file looks like ours -open(utmp,'/etc/utmp'); -@mo = ('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'); -while (read(utmp,$utmp,36)) { +open(UTMP,'/etc/utmp'); +@mo = (Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec); +while (read(UTMP,$utmp,36)) { ($line,$name,$host,$time) = unpack('A8A8A16l',$utmp); if ($name) { $host = "($host)" if $host; -- cgit v1.2.1