Loading ...
Sorry, an error occurred while loading the content.

include command

Expand Messages
  • Dustin Davis
    Is there an equivilent command in perl as the php include function (basically includes another script as if it were a part of the script including it)
    Message 1 of 6 , Jun 1, 2004
    • 0 Attachment
      Is there an equivilent command in perl as the php include function
      (basically includes another script as if it were a part of the script
      "including" it)

      Thanks,
      Dustin
    • Gilles Beauregard
      Allo! ... Work great! Thank! Gilles B. -- Encore plus de trucs et d astuces pour Webmasters http://www.biwi.qc.ca/favori/ More Webmastering trics:
      Message 2 of 6 , Jun 1, 2004
      • 0 Attachment
        Allo!

        >Use regexp replacement instead:
        >
        > $string =~ s/&\#(\d+);/chr($1)/ge;
        >
        >or even better, use a module:
        >
        > use HTML::Entities;
        > $string = decode_entities($string);

        Work great!

        Thank!

        Gilles B.

        --
        Encore plus de trucs et d'astuces pour Webmasters
        http://www.biwi.qc.ca/favori/
        More Webmastering trics:
        http://www.biwi.qc.ca/favorite/
        --
      Your message has been successfully submitted and would be delivered to recipients shortly.