=over 4
=item *
-Only subs for which the call args are unpacked in an orderly manner at the beginning of the sub from C<@_>, directly and/or with C<shift> operations, are checked. Subs for which this does not appear to be the case are skipped.
+The only subs which these checks are made are those for which the call args are unpacked in an orderly manner at the beginning of the sub from C<@_>, directly and/or with C<shift> operations.
=item *
Subs which appear to have no args are not checked. This is necessary to avoid false warnings when a sub actually uses args in a complex way.
# 9x/Me box. Contributed by: Yves Orton.
my ( $rpending_complaint, $os ) = @_;
- if ( !$os ) { $os = Win_OS_Type(); }
+ if ( !$os ) { $os = Win_OS_Type($rpending_complaint) }
return unless $os;
sub warning {
- # report errors to .ERR file (or stdout)
my ( $self, $msg, $msg_line_number ) = @_;
+ # Report errors to .ERR file (or stdout)
+ # Given:
+ # $msg = a string with the warning message
+ # $msg_line_number = optional line number to display
+
use constant WARNING_LIMIT => 50;
# Always bump the warn count, even if no message goes out
RETURN:
DEBUG_SCAN_ID && do {
- my ( $a, $b, $c ) = caller;
+ my ( $a, $b, $c ) = caller();
print {*STDOUT}
"SCANID: called from $a $b $c with tok, i, state, identifier =$tok_begin, $i_begin, $id_scan_state_begin, $identifier_begin\n";
print {*STDOUT}