Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 39 lines (34 sloc) 1.554 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
Reading database from /home/pjcj/g/perl/dev/Devel-Cover-0.3409/cover_db


--------------------------------------------------------------- ------ ------
File pod total
--------------------------------------------------------------- ------ ------
tests/alias n/a n/a
Total n/a n/a
--------------------------------------------------------------- ------ ------


tests/alias

line err pod code
1 #!/usr/bin/perl
2
3 # Copyright 2004, Paul Johnson (pjcj@cpan.org)
4
5 # This software is free. It is licensed under the same terms as Perl itself.
6
7 # The latest version of this software should be available from my homepage:
8 # http://www.pjcj.net
9
10 package Foo;
11
12 sub is_3digits {
13 my $val = shift;
14 my $retval = undef;
15 $retval=1 if $val =~ /^\d{3}$/;
16 return $retval;
17 }
18
19 package main;
20
21 *main::is_3digits = *Foo::is_3digits;
22 # delete $Foo::{is_3digits};
23
24 is_3digits(1234);
25 is_3digits(123);
Something went wrong with that request. Please try again.