Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

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
Heironimus
Honored Contributor

Re: Perl issue.

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