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
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
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
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
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
-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
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
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