Perl equivalent of PHP include

Discussion in 'Perl' started by Mark, Jul 21, 2004.

  1. Mark

    Mark Guest

    Is there a Perl equivalent of the PHP include statement? If so please can
    you also give me a reference in the perldoc manual.

    http://www.php.net/function.include

    Thanks
    Mark
     
    Mark, Jul 21, 2004
    #1
    1. Advertising

  2. Mark

    NixerX Guest

    Pretty sure you can use include or require.
    require "myFunctions.pl";
    -J

    On Wed, 21 Jul 2004, Mark wrote:

    > Is there a Perl equivalent of the PHP include statement? If so please can
    > you also give me a reference in the perldoc manual.
    >
    > http://www.php.net/function.include
    >
    > Thanks
    > Mark
    >
    >
    >
    >
     
    NixerX, Jul 21, 2004
    #2
    1. Advertising

  3. Mark

    Guest

    "Mark" <> wrote in message news:<9ytLc.89730$>...
    > Is there a Perl equivalent of the PHP include statement? If so please can
    > you also give me a reference in the perldoc manual.


    perldoc -f use
    perldoc -f do
    perldoc -f require

    Also if you want to trap errors

    perldoc -f eval

    This newsgroup does not exist (see FAQ). Please do not start threads here.
     
    , Jul 21, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andreas Bogenberger
    Replies:
    3
    Views:
    957
    Andreas Bogenberger
    Feb 22, 2008
  2. Rajive Narain
    Replies:
    0
    Views:
    1,988
    Rajive Narain
    Sep 18, 2009
  3. Miquel Oliete
    Replies:
    4
    Views:
    175
    Miquel Oliete
    Mar 7, 2008
  4. Francesco Moi
    Replies:
    2
    Views:
    239
    Gunnar Hjalmarsson
    May 31, 2004
  5. Steve Chapel

    Perl equivalent of PHP and JSP: Mason?

    Steve Chapel, Oct 23, 2005, in forum: Perl Misc
    Replies:
    3
    Views:
    215
    GClef
    Oct 24, 2005
Loading...

Share This Page