Calling A file

They have: 88 posts

Joined: Mar 1999

Hi ppl,

Was looking for a way to call a file
from within a subroutine - i've tried
a few different things but all to no
avail

I used the search to see if it had been
asked before - no luck.

I call the sub like this:

if (param('action') ne 'CONTACT DETAILS') {
print " ",param('action'),"<BR>";
}else {
&contact
}

And at the bottom I have this:

sub contact {

#This is where I want to call modify2.pl

}

Any ideas? - Hopefully an easy one - just
not for me

Many Thanks For Your Help

Justin S's picture

They have: 2,076 posts

Joined: Jun 1999

Why not require the modify2.pl file, then in sub contact you can just call a subroutine in modify2.pl by saying &subname?

------------------
Critiquing over 1000 sites on the Internet today...

They have: 568 posts

Joined: Nov 1999

Umm... so the sub routine is in a different file that the actual program?

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.