In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Christian Stalp) writes:
What can I do to use getopt() and use strict?
If I use strict I have to declare all of my variables. And if I do this, perl
ignores my getopt(s) single-chars. Is this normal? What can I do to solve
this?
Learn about
Hello together, I have a new problem.
What can I do to use getopt() and use strict?
If I use strict I have to declare all of my variables. And if I do this, perl
ignores my getopt(s) single-chars. Is this normal? What can I do to solve
this?
I want to use perl with -w option and the strict
On Oct 15, Christian Stalp said:
What can I do to use getopt() and use strict?
Declare your variables with our() if you're using Perl 5.6 or better;
otherwise, declare them with 'use vars'.
If I use strict I have to declare all of my variables. And if I do this, perl
ignores my getopt(s)
Declare your variables with our() if you're using Perl 5.6 or better;
otherwise, declare them with 'use vars'.
All right, it works now, thank you very much.
If you're using Perl 5.6, don't use -w anymore, use the warnings
pragma.
warnings? How does this works?
#!/usr/bin/perl warnings
or