Professional Web Applications Themes

Perl Script for accessing XML file - PERL Beginners

From: Bob Showalter <mailto:com> wrote: : Pothula, Giridhar wrote: : : Hi All, : : : : I am trying to get a code snippet for the client side Perl : : script in an ASP page which accesses XML file residing on the : : server. : : Hmm, not sure what you mean by "client side". Both ASP and Perl : are server-side technologies. : : Anyway, you might want to start at : http://perl-xml.sourceforge.net/faq/ Perlscript can also be run as a client side script like Javascript and VBscript. It just seems like an unlikely scenario. HTH, Charles ...

  1. #1

    Default RE: Perl Script for accessing XML file

    From: Bob Showalter <mailto:com> wrote:

    : Pothula, Giridhar wrote:
    : : Hi All,
    : :
    : : I am trying to get a code snippet for the client side Perl
    : : script in an ASP page which accesses XML file residing on the
    : : server.
    :
    : Hmm, not sure what you mean by "client side". Both ASP and Perl
    : are server-side technologies.
    :
    : Anyway, you might want to start at
    : http://perl-xml.sourceforge.net/faq/

    Perlscript can also be run as a client side script like
    Javascript and VBscript. It just seems like an unlikely
    scenario.

    HTH,

    Charles K. Clarkson
    --
    Mobile Homes Specialist
    254 968-8328

    Charles Guest

  2. #2

    Default RE: Perl Script for accessing XML file

    Pothula, Giridhar wrote:

    Hi. Top-post please. http://home.in.tum.de/~jain/software/outlook-quotefix/
     

    OK, well the faq I pointed you to will give you some ideas of the overall
    topic of parsing XML with Perl. Lots of ways to approach it, so get an
    overview before diving in.
     
    >
    > Hmm, not sure what you mean by "client side". Both ASP and Perl are
    > server-side technologies.
    >
    > Anyway, you might want to start at
    > http://perl-xml.sourceforge.net/faq/[/ref]

    Bob Guest

  3. #3

    Default Re: Perl Script for accessing XML file

    On Tue, 31 Aug 2004, Pothula, Giridhar wrote:
     

    I don't know the first thing about ASP programming, sorry.

    You can try the org list, but I don't know how much
    expertise they would have with ASP either...


    --
    Chris Devers com
    http://devers.homeip.net:8080/blog/

    np: 'Movin' Right Along (lo-fi midi version)'
    by The Muppets
    from 'The Muppet Movie Soundtrack'
    Chris Guest

  4. #4

    Default Re: Perl Script for accessing XML file

    From: "Pothula, Giridhar" <com> 

    It would be much easier using XML::Simple.

    ...
    use XML::Simple;

    my $data = XMLin('CustomSkins.xml');
    print $data->{to};
    ...

    Jenda
    (Code is untested but should be about right.)

    ===== cz === http://Jenda.Krynicky.cz =====
    When it comes to wine, women and song, wizards are allowed
    to get drunk and croon as much as they like.
    -- Terry Pratchett in Sourcery

    Jenda Guest

  5. #5

    Default RE: Perl Script for accessing XML file

    On Tue, 31 Aug 2004, Pothula, Giridhar wrote:
     

    If you're using Apache, there's no reason to use ASP if you don't have
    to; this should work with straight Perl/CGI or mod_perl instead.

    Would doing this as a regular CGI script be an option for you? You'll
    probably have much better luck finding help if you can do that...


    (Also, it's "Perl" for the language, "perl" for the program that runs
    scripts written in the language, and never ever "PERL" for anything.)



    --
    Chris Devers com
    http://devers.homeip.net:8080/blog/

    np: 'It's Not Easy Being Green (lo-fi midi version)'
    by Kermit
    from 'The Muppet Movie Soundtrack'
    Chris Guest

  6. #6

    Default RE: Perl Script for accessing XML file

    From: "Pothula, Giridhar" <com>
    To: "Jenda Krynicky" <cz>, <org>

    Please don't do this. I get the mail through the mailing list I don't
    need to get it directly as well. It gets sorted into the same folder
    anyway so you are not going to get a reply sooner.
     

    Please send us
    1. the complete ASP you have
    2. the exact errors you get
    3. your operating system version, your web server version, your perl
    version (run perl -v from command prompt)

    Jenda
    ===== cz === http://Jenda.Krynicky.cz =====
    When it comes to wine, women and song, wizards are allowed
    to get drunk and croon as much as they like.
    -- Terry Pratchett in Sourcery

    Jenda Guest

Similar Threads

  1. Perl Help - Windows Perl script accessing a Unix perl Script
    By dpackwood in forum PERL Miscellaneous
    Replies: 8
    Last Post: September 30th, 07:54 AM
  2. Perl script checks for a file
    By Anthony J Segelhorst in forum PERL Beginners
    Replies: 1
    Last Post: September 5th, 02:44 PM
  3. pipe a file to a perl script
    By Asif Iqbal in forum PERL Beginners
    Replies: 0
    Last Post: August 13th, 05:53 AM
  4. Replies: 3
    Last Post: July 16th, 01:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139