when i run this with the "use strict use warnings" i get this:Whenever perl gives you any warning or error message you are unsure of the meaning of, consult perldoc perldiag (or say use diagnostics;, which tries to do this for you)....Global symbol "$path" requires explicit package name at punctuation.pl + line 6.
what is an explicit package name? how do i delcare it?
In this case, it says:
which would at least have told you about "our", and explained the wording of the error message (which certainly isn't worded as helpfully as it could be).(F) You've said "use strict vars", which indicates that all variables +must either be lexically scoped (using "my"), declared beforehand usi +ng "our", or explicitly qualified to say which package the global var +iable is in (using "::").
In reply to Re: Declaring variables under 'use strict'
by ysth
in thread Declaring variables under 'use strict'
by Yoda_Oz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |