[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Elementary question (I think)



Hi MacPerlers

This is really a general Perl question, but it happens to have cropped up
while I'm testing a CGI script written with MacPerl.

Suppose I have an array @stuff, when can and can't I use this syntax:

for ($i = 0; $i <= @stuff, $i++) {
...
}

I was under the impression that this was perfectly safe, but it seems to
break my script. As soon as I change all those @'s in this type of
construct to $# it works just fine.

 Cheers ... Chris
 ======================================================================
 Chris Sansom    -    Highway 57   -   Designs for the World Wide Web |
 chris@highway57.co.uk                     http://www.highway57.co.uk |
 ======================================================================



===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org