chunlou has asked for the wisdom of the Perl Monks concerning the following question:
cause syntax error, whereasuse constant k => 2; print 1-k; print 1-k(); print 1 -k();
won't? Thanks.use constant k => 2; print 1-&k; print 1- k(); print 1- k;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: syntax error with constant
by BrowserUk (Patriarch) on Aug 03, 2003 at 22:19 UTC | |
by liz (Monsignor) on Aug 03, 2003 at 22:42 UTC | |
by TomDLux (Vicar) on Aug 04, 2003 at 01:08 UTC | |
by liz (Monsignor) on Aug 04, 2003 at 07:30 UTC | |
by sgifford (Prior) on Aug 04, 2003 at 06:56 UTC | |
|
Re: syntax error with constant
by liz (Monsignor) on Aug 03, 2003 at 22:17 UTC | |
|
Re: syntax error with constant
by artist (Parson) on Aug 04, 2003 at 23:04 UTC |