I have included the lib pragma and the code run good now. Thanks a lot for the help.
You are right, TestCalender is not a CPAN module. Still I have a doubt (if you dont mind me asking it again).
Why Perl is not able to look for the module ONLY WHEN the "self->SUPER::LogFile Gen($test_name) ;" line in included in the code BUT able to look for the module when I comment this out.
Sorry If I am...
User Profile
Collapse
-
Also, let me know how can I make sure that perl is able to find the module.
Thanks,Leave a comment:
-
Thanks . I will surely keep that in mind.
If you see the code, there is :
[CODE=perl]Class::Autouse->load( $_ ); # @ line 10. whick loads all the modules.[/CODE]
I am not getting the error when I run the code as it is. But when I insert
[CODE=perl]$self->SUPER::LogFile Gen($test_name) ; #priti - I see the error.[/CODE]
Hope my question is clear now.
Thanks.Leave a comment:
-
It is already. The error is coming only when I call the LogFileGel subrouting from this subroutine.Leave a comment:
-
Calling subroutine
Hi,
Below is the part of code from a test FW I am working on :
[CODE=perl]sub run {
[I]my $self = shift;
$self->SUPER::LogDirG en( ); # priti
my $config = new Config::Simple( $self->{ config } );
my %config_hash = $config->vars( );
print ("1............ ......");
foreach ( @{ $self->{ queue } } ) {
print ("2............ ......");...
No activity results to display
Show More
Leave a comment: