For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > July 2004 > How do i return the end of file message in a subroutine?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How do i return the end of file message in a subroutine?
Jason Corbett

2004-07-22, 8:56 pm

I am using an application called "Title" to kick off jobs instead of using the cron.
I am told that this application doesn't accept SQL embedded inside perl scripts unless the SQL or perl script returns the end of file message. What method in perl returns the eof message?

is it

sub myroutine {

$sql = qq( select * from mytable where rownum < 1001);

} return eof;


or calling eof( ) i.e.

sub myroutine {

$sql = qq( select * from mytable where rownum < 1001);

eof( ) }

return;

or are both of these wrong?

Thanks,
JC


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com