in reply to Re: Question regarding perl subroutine
in thread Question regarding perl subroutine
Hi John Davies, Thanks a lot! That was good catch. Now I am getting a different error as below:
/usr/local/bin/perl PtfSapGetSyncStg.pl Can't call method "agent" on an undefined value at PtfSapGetSyncStg.pl + line 158.
Here is the code on line 158:
my $ua->agent("Mozilla/5.0"); #my $ua->agent("");
is the syntax for calling "agent" method ok? I am not sure what tool is on our unix server. Any suggestions ? Thanks Suresh
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Question regarding perl subroutine
by afoken (Chancellor) on Jul 15, 2012 at 21:11 UTC | |
|
Re^3: Question regarding perl subroutine
by davies (Monsignor) on Jul 15, 2012 at 21:28 UTC | |
|
Re^3: Question regarding perl subroutine
by monsoon (Pilgrim) on Jul 15, 2012 at 21:18 UTC |