in reply to how to call perl from asp

Hi rajenrshah, There are dozens of ways, you can even use the Apache port of ASP to get support for the XML files.

If you want to generate the XML files yourself, check out perl XML libraries.

Yours
---------------------------
Dr. Mark Ceulemans
Senior Consultant
IT Masters, Belgium

Replies are listed 'Best First'.
Re: Re: how to call perl from asp
by rajenrshah (Initiate) on May 03, 2002 at 09:24 UTC
    hi this is the code of perl file have a look at it & tell me how to go
    #!/usr/bin/perl use Image::IPTCInfo; chdir('demo_images'); my @files = ('burger_van.jpg', 'dog.jpg'); foreach my $filename (@files) { # Create new IPTCInfo object for the file my $info = new Image::IPTCInfo($filename); # With this you can get a list of keywords... my $keywordsRef = $info->Keywords(); # ...and specific attributes print "file : $filename\n"; print "caption : " . $info->Attribute('caption/abstract') . "\n" +; foreach $keyword (@$keywordsRef) { print " keyword : $keyword\n"; } # Create some mappings and extra data for messing # with XML and SQL exports. my %mappings = ( 'caption/abstract' => 'caption', 'by-line' => 'byline', 'city' => 'city', 'province/state' => 'state'); my %extra = ('extra1' => 'value1', 'filename' => $filename); # Demo XML export, with and without extra stuff print $info->ExportXML('photo'); } exit;
    Rajen Shah rajenrshah@rediffmail.com