1N/A foreach my $s (@_) {
1N/A Carp::
croak(
"Unknown 'strict' tag(s) '@wrong'");
1N/Astrict - Perl pragma to restrict unsafe constructs 1N/AIf no import list is supplied, all possible restrictions are assumed. 1N/A(This is the safest mode to operate in, but is sometimes too strict for 1N/Acasual programming.) Currently, there are three possible things to be 1N/Astrict about: "subs", "vars", and "refs". 1N/AThis generates a runtime error if you 1N/Ause symbolic references (see L<perlref>). 1N/A print $$ref; # runtime error; normally ok 1N/A print $file "Hi!"; # error; note: no comma after $file 1N/AThere is one exception to this rule: 1N/Ais allowed so that C<goto &$AUTOLOAD> would not break under stricture. 1N/AThis generates a compile-time error if you access a variable that wasn't 1N/Adeclared via C<our> or C<use vars>, 1N/Alocalized via C<my()>, or wasn't fully qualified. Because this is to avoid 1N/Avariable suicide problems and subtle dynamic scoping issues, a merely 1N/A $X::foo = 1; # ok, fully qualified 1N/A my $foo = 10; # ok, my() var 1N/A local $foo = 9; # blows up 1N/A our $bar; # Declares $bar in current package 1N/A $bar = 'HgS'; # ok, global declared via pragma 1N/AThe local() generated a compile-time error because you just touched a global 1N/Aname without fully qualifying it. 1N/ABecause of their special use by sort(), the variables $a and $b are 1N/Aexempted from this check. 1N/AThis disables the poetry optimization, generating a compile-time error if 1N/Ayou try to use a bareword identifier that's not a subroutine, unless it 1N/Ais a simple identifier (no colons) and that it appears in curly braces or 1N/Aon the left hand side of the C<< => >> symbol. 1N/A $SIG{PIPE} = Plumber; # blows up 1N/A $SIG{PIPE} = "Plumber"; # just fine: quoted string is always ok 1N/A $SIG{PIPE} = \&Plumber; # preferred form 1N/AC<strict 'subs'>, with Perl 5.6.1, erroneously permitted to use an unquoted 1N/Acompound identifier (e.g. C<Foo::Bar>) as a hash key (before C<< => >> or 1N/Ainside curlies), but without forcing it always to a literal string. 1N/AStarting with Perl 5.8.1 strict is strict about its restrictions: 1N/Aif unknown restrictions are used, the strict pragma will abort with 1N/A Unknown 'strict' tag(s) '...'