Hi Shawn
How do I use this option of -MO=Deparse when executing a perl script with an embedded #! Prompt?
Our scripts start with the line
#!/ats/bin/perl -w
I tried adding the parameters here, but got the following errors
Too late for "-MO=Deparse" option at ./startAutomation line 1.
BEGIN { $^W = 1; }
Then there are a host of other environment variables set before executing the functions in the modules by a call to
unless ( my $return_val = do $test_suite_list_file ) {
die "ERROR: Couldn't parse test suite file \"$test_suite_list_file\": $@\n" if $@;
die "ERROR: Couldn't 'do' test suite file \"$test_suite_list_file\": $!\n" unless defined $return_val;
die "ERROR: Couldn't run test suite file \"$test_suite_list_file\": $!\n" unless $return_val;
is there other way of using the option -MO=Deparse??
Thanks,
Satya
-----Original Message-----
From: Shawn H Corey [mailto:shawnhcorey@gmail.com]
Sent: 23 January 2012 18:25
To: beginners@perl.org
Subject: Re: How to compile just the current perl module, ignoring all the other included modules
On 12-01-23 12:38 PM, Nemana, Satya wrote:
> I tried perl -c also with the same results.
> It takes 4-5 minutes to know that I missed a " some where.
> It is very painful.
> Is there no other way?
That's very unusual, most scripts take only a few seconds to compile. Try:
perl -MO=Deparse MyModule.pm
--
Just my 0.00000002 million dollars worth,
Shawn
Programming is as much about organization and communication as it is about coding.
Strength is not a measure of the body.
It's a measure of the heart.
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org For additional commands, e-mail: beginners-help@perl.org http://learn.perl.org/
Thread Previous
|
Thread Next