gube has asked for the wisdom of the Perl Monks concerning the following question:
Dear monks,
In my program i have to use the pragma use strict, and also i have to store in array the following elements a to z. If i use the below code i am getting Bareword error. If i omit the line use strict i get array values from a to z. How to solve this.
use strict; my @a = (A..Z); print join "\n", @a;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to solve this using use strict ?
by GrandFather (Saint) on Jul 06, 2005 at 04:37 UTC | |
|
Re: How to solve this using use strict ?
by virtualsue (Vicar) on Jul 06, 2005 at 04:50 UTC | |
|
Re: How to solve this using use strict ?
by jbrugger (Parson) on Jul 06, 2005 at 04:39 UTC | |
by omega_monk (Scribe) on Jul 06, 2005 at 16:50 UTC | |
|
Re: How to solve this using use strict ?
by rinceWind (Monsignor) on Jul 06, 2005 at 15:31 UTC |