At 08:44 -0400 6/7/99, Geoffrey C Kinnel wrote: > Peta Adams / John Murray wrote: >> >> THE ERRORS: >> # syntax error, near "if $alltimes" > > ...and here's the line... > >> if $alltimes[0] eq $username { > > $foo or @foo[x]? Sorry, I don't understand the question... but $foo[x] (i.e. $alltimes[0]) is a single element of an array; a scalar variable. @foo[x] is a different beastie (an array slice) and will generate a warning under -w Scalar value @foo[0] better written as $foo[0]. _Most_ of the time, if someone writes @foo[x], it's a mistake... (hence the warning) -- -- |\ _,,,---,,_ Vicki Brown <vlb@cfcl.com> ZZZzz /,`.-'`' -. ;-;;,_ Journeyman Sourceror: Scripts & Philtres |,4- ) )-,_. ,\ ( `'-' P.O. Box 1269 San Bruno CA 94066 '---''(_/--' `-'\_) http://www.cfcl.com/~vlb http://www.macperl.org ===== Want to unsubscribe from this list? ===== Send mail with body "unsubscribe" to macperl-request@macperl.org