Re: writing a package

2006-09-24 Thread D. Bolliger
D. Bolliger am Sonntag, 24. September 2006 17:46: [...] >... error: Undefined subroutine &main::cmp_file called > at ./script.pl line 30. [...] Argh! Please disregard my previous post - sorry to all. I did not realize that cmp_file() is part of the module to test (File::Cmp) a

Re: writing a package

2006-09-24 Thread Rob Dixon
Dani Bolliger wrote: > > Johnson, Reginald (GTI) am Sunday, 24. September 2006 04:47: >> >> Tom Phoenix wrote: >>> >>> On 9/23/06, Johnson, Reginald (GTI) <[EMAIL PROTECTED]> wrote: t/1Test header seen more than once! use Test::More tests => 1; BEGIN { $| = 1; print "1

Re: writing a package

2006-09-24 Thread D. Bolliger
led at ./script.pl line 30. # No tests run! Hope this helps! Dani [history:] > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of > Tom Phoenix > Sent: Saturday, September 23, 2006 4:31 PM > To: Johnson, Reginald (GTI) >

RE: writing a package

2006-09-23 Thread Johnson, Reginald \(GTI\)
rday, September 23, 2006 4:31 PM To: Johnson, Reginald (GTI) Cc: beginners@perl.org Subject: Re: writing a package On 9/23/06, Johnson, Reginald (GTI) <[EMAIL PROTECTED]> wrote: > t/1Test header seen more than once! > use Test::More tests => 1; > BEGIN { $| = 1; print &quo

Re: writing a package

2006-09-23 Thread Tom Phoenix
On 9/23/06, Johnson, Reginald (GTI) <[EMAIL PROTECTED]> wrote: t/1Test header seen more than once! use Test::More tests => 1; BEGIN { $| = 1; print "1..3\n";} Using Test::More outputs the test header line, so you don't need to print "1..3\n"; but be sure to use the correct number of tes