• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Perl syntax
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Perl syntax


  • Subject: Re: Perl syntax
  • From: Greg Townsend <email@hidden>
  • Date: Sun, 15 Jun 2003 02:16:03 -0400

Sorry for clogging up mailboxes - I just discovered that for some reason one of my filters was putting everything with "PERL syntax" in the subject line into the trash. Thanks to all who have replied.

I've tried to send this twice before but have not gotten it back so I'm assuming it never made it to the list for some reason - my apologies if you've already seen it, and I promise I won't send it again.

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 -e'" & shellscript & "'"

However, I just get execution errors (with or without 'quoted form of shellscript'). I can't find any information anywhere on what the proper syntax should be. Any help would be appreciated - thanks.

Greg Townsend
_______________________________________________
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.

References: 
 >Perl syntax (From: Greg Townsend <email@hidden>)

  • Prev by Date: Perl syntax
  • Next by Date: GUI Script Printing Problem
  • Previous by thread: Perl syntax
  • Next by thread: Re: Perl syntax
  • Index(es):
    • Date
    • Thread