Thus spake Levi Bard on the 14 day of the 11 month in the year 2003:
> > my $user="Craig"
> > for (x=0; x<=5; x++) {
> > slap($user);
> > };
>
> Can't modify constant item in scalar assignment at slap.pl line 2, near "0;"
> slap() will now backfire.
> Have a nice day.
Blasted dollar signs! ;-)
Simply to pick nits, your error message is incorrect. Perl would first
be whining about the lack of a ";" on line one.
-- Matthew MoenMicrosoft Exchange: Incontrovertible proof that sometimes you /should/ shoot the messenger.
The following disclaimer is provided courtesy of, and willy-nilly by, NKS: ----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:50:37 EDT