Gossamer Forum
Home : General : Perl Programming :

Problems calling a subroutine

Quote Reply
Problems calling a subroutine
When I run this perl script in debug it jumps over my subroutine.

I call my sub like this
&LOG_DATE();

and define the sub like this

sub LOG_DATE {


this is the correct way to do it ??
I will try and upload my full script to some where as this message does not help much to show you the full script.

Any help or ideas would be good
thanks



Quote Reply
Re: Problems calling a subroutine In reply to
Try taking out the ().

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Problems calling a subroutine In reply to
Silly me
I found that I had put my sub like this
sub LOG_DATE {
}
closing the sub evean before I had started.

Joy's of writting your first ever perl script!
Thanks for your help
Eliot.
Quote Reply
Re: Problems calling a subroutine In reply to
You're welcome.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us