From: RedGrittyBrick on 23 Jun 2010 09:35 > cat y.pl #!/usr/bin/perl use strict; use warnings; foo(); >./y.pl Undefined subroutine &main::foo called at ./y.pl line 4. >perl -MO=Lint y.pl y.pl syntax OK What's a better way to check whether a program has undefined subroutines? -- RGB
From: RedGrittyBrick on 23 Jun 2010 09:48 On 23/06/2010 14:35, RedGrittyBrick wrote: > > > cat y.pl > #!/usr/bin/perl > use strict; > use warnings; > foo(); > > >./y.pl > Undefined subroutine &main::foo called at ./y.pl line 4. > > >perl -MO=Lint y.pl > y.pl syntax OK > > > What's a better way to check whether a program has undefined subroutines? > >perl -MO=Lint,all y.pl Undefined subroutine foo called at y.pl line 4 y.pl syntax OK I should read documentation with more care :-( -- RGB
|
Pages: 1 Prev: who stole my returned list? Next: FYI: perlbench 5.8.8-5.12.1 |