Re: possible RFC?

2002-08-15 Thread Daniel Gardner
Nikola Janceski wrote: WTF doesn't perl -c check for valid subroutines/function calls? I can write a perlscript calling a function that doesn't exist but perl -c will say syntax ok. ie: % perl -ce nothing_here('some junk') -e syntax OK % perl -e nothing_here('some junk') Undefined

RE: possible RFC?

2002-08-15 Thread Chas Owens
On Wed, 2002-08-14 at 15:43, Nikola Janceski wrote: Okay I understand the dynamic subroutine declarations. but perhaps a warning should be made for -w or 'use warnings'? It's just to find misspelled functions. I use 'use strict' for finding misspelled vars. Is there nothing for finding

possible RFC?

2002-08-14 Thread Nikola Janceski
WTF doesn't perl -c check for valid subroutines/function calls? I can write a perlscript calling a function that doesn't exist but perl -c will say syntax ok. ie: % perl -ce nothing_here('some junk') -e syntax OK % perl -e nothing_here('some junk') Undefined subroutine main::nothing_here called

Re: possible RFC?

2002-08-14 Thread George Schlossnagle
One reason is that you can make runtime use/require calls, as well as run-time function definitions with eval. For example use strict; my $subname = 'contrived'; eval qq(sub $subname { print This could be useful\n }); contrived(); This may seem highly contrived (it is), but there are useful

Re: possible RFC?

2002-08-14 Thread Adam Turoff
On Wed, Aug 14, 2002 at 02:53:49PM -0400, Nikola Janceski wrote: WTF doesn't perl -c check for valid subroutines/function calls? Because it's quite possible to define subs dynamically. That is, the sub isn't defined directly in your code, but is created (and installed) after your code has

RE: possible RFC?

2002-08-14 Thread Bob Showalter
-Original Message- From: Nikola Janceski [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 2:54 PM To: Beginners (E-mail) Subject: possible RFC? WTF doesn't perl -c check for valid subroutines/function calls? I can write a perlscript calling a function that doesn't

RE: possible RFC?

2002-08-14 Thread Nikola Janceski
Okay I understand the dynamic subroutine declarations. but perhaps a warning should be made for -w or 'use warnings'? It's just to find misspelled functions. I use 'use strict' for finding misspelled vars. Is there nothing for finding misspelled functions, aside from running it and hoping for

Re: possible RFC?

2002-08-14 Thread Randal L. Schwartz
Adam == Adam Turoff [EMAIL PROTECTED] writes: Adam On Wed, Aug 14, 2002 at 02:53:49PM -0400, Nikola Janceski wrote: WTF doesn't perl -c check for valid subroutines/function calls? Adam Because it's quite possible to define subs dynamically. That is, Adam the sub isn't defined directly in