sgardner has asked for the wisdom of the Perl Monks concerning the following question:
If I use the Use strict, I get ""use" not allowed in expression at line 2" If I take strict out, I receive a "Can't modify not in scalar assignment". I'm really not sure why this doesn't work.!# perl -w use strict; my $myVariable="hello, world"; print $myVariable;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Easy script question
by pryrt (Abbot) on Mar 01, 2018 at 17:21 UTC | |
by sgardner (Initiate) on Mar 01, 2018 at 17:30 UTC | |
by Anonymous Monk on Mar 01, 2018 at 21:11 UTC | |
|
Re: Easy script question
by Laurent_R (Canon) on Mar 01, 2018 at 17:47 UTC | |
by haukex (Archbishop) on Mar 01, 2018 at 20:50 UTC |