On Sunday, June 23, 2002, at 03:47 , Hytham Shehab wrote:

> i think that writing a module is not my answere, i think it is a huge
> complicated answere for a simple question.

actually in the long run it will simplify the process.

> all what i want is simply put all my used subroutines in a seperate files,
> then call the subroutine from that file whenever i want to use the
> subroutine, am i clear now?

Ok, let start out simple then - we'll get you to h2xs and
the rest of that as they become more useful.

you need three basic things:

        a) a place to put them that you will always be able to
                reference.

        b) a simplistic perl library structure

        c) go with the 'require' approach

> no redundency is my only target, thats it...

        #!/usr/bin/perl -w
        use strict;
        use lib "$ENV{HOME}/lib/perl"; # were we put our file
        require "WebAccess.txt";
        ....

cf:
  http://www.wetware.com/drieux/pbl/perlTrick/subStuff/SimpleLib/

there is a Way Simple precursor to the LWP::AGENT code in there
from the old days of 'open socket' chat....

the demo code will show you how to invoke this library....

Hopefully that will show you the simplest way to get to the
basic Just Another Stack of Functions....

ciao
drieux

---


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to