Acme-AtIncPolice
view release on metacpan or search on metacpan
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) 19xx name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the
appropriate parts of the General Public License. Of course, the
commands you use may be called something other than `show w' and `show
c'; they could even be mouse-clicks or menu items--whatever suits your
program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here a sample; alter the names:
lib/Acme/AtIncPolice.pm view on Meta::CPAN
push @filename, $f;
push @line, $l;
}
my $location = @line == 1 ? " at $filename[0] line $line[0]." :
join "\n", map " at $filename[$_] line $line[$_].", (0 .. $#filename);
my($_p, $p) = ($self, $self->parent);
while($p){
my $s_type = ref $p->{storage};
my $s = $p->{storage};
if($s_type eq 'HASH'){
push @msg, "{$_p->{__key}}";
}elsif($s_type eq 'ARRAY'){
push @msg, "[$_p->{__point}]";
}
$_p = $p;
last if ! ref $p or ! ($p = $p->parent);
}
$msg = @msg > 0 ? ' => ' . join "", reverse @msg : "";
$value = '' unless defined $value;
if ($class eq 'Scalar') {
lib/Acme/AtIncPolice.pm view on Meta::CPAN
my $value = $self->_matching($self->{options}->{value}, $args{value});
if (($args{key} and $op->{key}) and $op->{value}) {
return unless $key or $value;
} elsif($args{key} and $op->{key}) {
return unless $key;
} elsif($op->{value}) {
return unless $value;
}
}
# debug type
my $value = $self->_debug_message($args{value}, $op->{debug}, $args{filter});
# debug_value checking
return unless $self->_matching($self->{options}->{debug_value}, $value);
# use scalar/array/hash ?
return unless grep lc($class) eq lc($_) , @{$op->{use}};
# create warning message
my $watch_msg = '';
my $msg = $self->_output_message($class, $value, \%args);
if(defined $self->{options}->{pkg}){
$watch_msg = sprintf("%s:: %s", @{$self->{options}}{qw/pkg var/});
( run in 1.766 second using v1.01-cache-2.11-cpan-df04353d9ac )