| 1 | #!/opt/perl58/bin/perl -w |
| 2 | |
| 3 | use Test::Morescip-perl cpan WWW-Mechanize-FormFiller 0.13 Test/More/ 'no_plan'; |
| 4 | |
| 5 | package Catchscip-perl cpan WWW-Mechanize-FormFiller 0.13 Catch/; |
| 6 | |
| 7 | sub TIEHANDLEscip-perl cpan WWW-Mechanize-FormFiller 0.13 Catch/TIEHANDLE(). { |
| 8 | my($class, $var) = @_scip-perl cpan WWW-Mechanize-FormFiller 0.13 Catch/`@_`.; |
| 9 | return blessscip-perl cpan WWW-Mechanize-FormFiller 0.13 Catch/bless(). { var => $var }, $class; |
| 10 | } |
| 11 | |
| 12 | sub PRINTscip-perl cpan WWW-Mechanize-FormFiller 0.13 Catch/PRINT(). { |
| 13 | my($self) = shiftscip-perl cpan WWW-Mechanize-FormFiller 0.13 Catch/shift().; |
| 14 | ${'main::'.$self->{var}} .= joinscip-perl cpan WWW-Mechanize-FormFiller 0.13 Catch/join(). '', @_scip-perl cpan WWW-Mechanize-FormFiller 0.13 Catch/`@_`.; |
| 15 | } |
| 16 | |
| 17 | sub OPENscip-perl cpan WWW-Mechanize-FormFiller 0.13 Catch/OPEN(). {} # XXX Hackery in case the user redirects |
| 18 | sub CLOSEscip-perl cpan WWW-Mechanize-FormFiller 0.13 Catch/CLOSE(). {} # XXX STDERR/STDOUT. This is not the behavior we want. |
| 19 | |
| 20 | sub READscip-perl cpan WWW-Mechanize-FormFiller 0.13 Catch/READ(). {} |
| 21 | sub READLINEscip-perl cpan WWW-Mechanize-FormFiller 0.13 Catch/READLINE(). {} |
| 22 | sub GETCscip-perl cpan WWW-Mechanize-FormFiller 0.13 Catch/GETC(). {} |
| 23 | sub BINMODEscip-perl cpan WWW-Mechanize-FormFiller 0.13 Catch/BINMODE(). {} |
| 24 | |
| 25 | my $Original_File = 'lib/WWW/Mechanize/FormFiller/Value.pm'; |
| 26 | |
| 27 | package mainscip-perl cpan WWW-Mechanize-FormFiller 0.13 main/; |
| 28 | |
| 29 | # pre-5.8.0's warns aren't caught by a tied STDERR. |
| 30 | $SIGscip-perl cpan WWW-Mechanize-FormFiller 0.13 main/`%SIG`.{__WARN__} = sub { $main::_STDERR_scip-perl cpan WWW-Mechanize-FormFiller 0.13 main/$_STDERR_. .= joinscip-perl cpan WWW-Mechanize-FormFiller 0.13 main/join(). '', @_scip-perl cpan WWW-Mechanize-FormFiller 0.13 main/`@_`.; }; |
| 31 | tie *STDOUT, 'Catch', '_STDOUT_' or diescip-perl cpan WWW-Mechanize-FormFiller 0.13 main/die(). $!scip-perl cpan WWW-Mechanize-FormFiller 0.13 main/`$!`.; |
| 32 | tie *STDERR, 'Catch', '_STDERR_' or diescip-perl cpan WWW-Mechanize-FormFiller 0.13 main/die(). $!scip-perl cpan WWW-Mechanize-FormFiller 0.13 main/`$!`.; |
| 33 | |
| 34 | SKIP: { |
| 35 | # A header testing whether we find all prerequisites : |
| 36 | |
| 37 | # The original POD test |
| 38 | undefscip-perl cpan WWW-Mechanize-FormFiller 0.13 main/undef(). $main::_STDOUT_scip-perl cpan WWW-Mechanize-FormFiller 0.13 main/$_STDOUT_.; |
| 39 | undefscip-perl cpan WWW-Mechanize-FormFiller 0.13 main/undef(). $main::_STDERR_scip-perl cpan WWW-Mechanize-FormFiller 0.13 main/$_STDERR_.; |
| 40 | eval q{ |
| 41 | my $example = sub { |
| 42 | local $^W = 0; |
| 43 | |
| 44 | #line 34 lib/WWW/Mechanize/FormFiller/Value.pm |
| 45 | |
| 46 | # This class is not used directly |
| 47 | |
| 48 | ; |
| 49 | |
| 50 | } |
| 51 | }; |
| 52 | isscip-perl cpan WWW-Mechanize-FormFiller 0.13 main/is().($@scip-perl cpan WWW-Mechanize-FormFiller 0.13 main/`$@`., '', "example from line 34"); |
| 53 | |
| 54 | }; |
| 55 | SKIP: { |
| 56 | # A header testing whether we find all prerequisites : |
| 57 | |
| 58 | # The original POD test |
| 59 | undefscip-perl cpan WWW-Mechanize-FormFiller 0.13 main/undef(). $main::_STDOUT_scip-perl cpan WWW-Mechanize-FormFiller 0.13 main/$_STDOUT_.; |
| 60 | undefscip-perl cpan WWW-Mechanize-FormFiller 0.13 main/undef(). $main::_STDERR_scip-perl cpan WWW-Mechanize-FormFiller 0.13 main/$_STDERR_.; |
| 61 | |
| 62 | }; |