1827951 Members
3392 Online
109973 Solutions
New Discussion

Perl issue.

 
Ronit_1
Occasional Advisor

Perl issue.

Hi all

Use of "do" to call subroutines is deprecated at ./abc line 45
I am getting this error in linux, while using perl script.

do main ();

sub main
{
some validation

}

So is there some other method of calling "do main" in linux.


###########################
Perl verion that i am using is....

This is perl, v5.8.5 built for i386-linux-thread-multi

Copyright 1987-2004, Larry Wall
##################################

Thanks
Ronit
1 REPLY 1
Heironimus
Honored Contributor

Re: Perl issue.

You just need "main();" to execute the subroutine.