Perl syntax
Perl syntax
- Subject: Perl syntax
- From: Greg Townsend <email@hidden>
- Date: Sat, 14 Jun 2003 09:26:28 -0400
I'm completely new to PERL, so I'm sure this will seem fairly obvious
to some. I'm trying to write a script to get info from the Internet
Movie Database (IMDB) using PERL. I found a website
(
http://www.infocopter.com/perl_corner/retos-imdb.htm) that describes
the syntax for PERL searches of IMDB. I used the PERL example script
there to create this Applescript:
set shellscript to "
use IMDB;
$imdb = IMDB->new();
%res_1 = $imdb->query('title' => 'star trek');
print \"-> $_ = $res_1{$_}\" foreach sort keys %res_1;
%res_2 = $imdb->query('title' => 'pulp fiction');
print \"-> $_ = $res_2{$_}\" foreach sort keys %res_2;
"
do shell script "perl " & shellscript
However, I just get execution errors (or "no such file errors" if I
use 'quoted form of shellscript'). I can't find any information
anywhere on what the proper syntax should be. Any help would be
appreciated - thanks.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.