> global symbol $user requires explicit pakage name at
try addind my infront of $user

IE:

my $user

it sounds like you are trying to use a variable that has not been defined,
that is you are useing "use strict" and or "perl -w" but did not my the
variabled


#!/usr/bin/perl -w

use strict;
# this is what your looking for here, without it you get the error
# you have described
my $user;

$user = qx(who);

print $user;


Then again, being a nob to perl I could be off in left field here...


Regards,
Ron

Reply via email to