in reply to array newbie...(sigh)

might try doing
chomp @h;
as from those system calls will have extra \n on the end. That is if your wanting your output to be something like
0     0     0     0
If your wanting your output to be
0 0 0 0
then you might also try applying a substitute to the array
s/\s+/ /g for @h;
let me know if you need anymore help

-bn

Replies are listed 'Best First'.
Re: Re: array newbie...(sigh)
by ddrumguy (Acolyte) on Mar 15, 2002 at 20:24 UTC
    as from those system calls will have extra \n on the end. That is if your wanting your output to be something like 0 0 0 0 If your wanting your output to be 0 0 0 0 then you might also try applying a substitute to the array
    s/\s+/ /g for @h;
    how do i implement the above code - will i have to use an if statement or?? let me know if you need anymore help