in reply to beginner syntax question

I think the problem is that you can't introduce a hash variable into a standard variable so perl just leaves $count = 0

Replies are listed 'Best First'.
Re: Re: beginner syntax question
by vectorvillain (Novice) on Sep 19, 2001 at 23:28 UTC
    $foo = @bar is a method for puting an element count into $foo, I like the suggestion to use the scalar command al la
     for ($i=0;$i <= scalar(@foo);$i) {print $foo[$i],"\n"}
    Forgetting to try escaping the . wasn't so bright. Thanks for the help guys
    Vec