arrays

R Dicaire rdicaire at ardynet.com
Sun Jan 27 11:12:22 CST 2002


Hi, I've been lurking on the list since last summer, and have a
question.
I'm trying to get the contents of 'uname -a' into an array.
I have:

#/usr/bin/perl
@a=`uname -a`;
print "$a[0] $a[1] $a[10]";

But this isn't working as I thought it would, its not printing the
selected
array elements. Any ideas?
http://knoxville.pm.org/




More information about the Knoxville-pm mailing list