Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
gives an error as 1..2 Type of arg 1 to Test::Data::Function::prototype_ok must be sub (not subroutine entry) at func.pl line 10, near "'Double scalar fooey' )" Type of arg 1 to Test::Data::Function::prototype_ok must be sub (not subroutine entry) at func.pl line 11, near "'$$' )" Execution of func.pl aborted due to compilation errors.#!/usr/bin/perl use Test::More tests => 2; use Test::Data qw(Function); sub fooey($$) { 1 } prototype_ok( &fooey, '$$', 'Double scalar fooey' ); prototype_ok( &fooey, '$$' );
Edit by BazB: change title from "Query"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem in synopsis of Test::Data?
by BrowserUk (Patriarch) on Jul 01, 2004 at 12:37 UTC |