Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Test::More Too Verbose

by Your Mother (Archbishop)
on Mar 25, 2010 at 23:47 UTC ( [id://831002]=note: print w/replies, xml ) Need Help??


in reply to Test::More Too Verbose

A snippet for testing perl scripts which may or may not be on point-

use Test::More; use FindBin qw( $RealBin ); my $out = qx{ /bin/env perl -cw $RealBin/../bin/script.pl }; like( $out, qr{script.pl syntax OK}, "Syntax OK" );

Compiling it, even without "execution," can have side-effects because of BEGIN but it's safer than straight execution.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://831002]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2024-03-29 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found