[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Using XML::RSS as a BBEdit Perl Filter



On 10/25/99 at 9:50 AM, webmaster@mycoinfo.com (Brian McNett) wrote:

> However, the script that parses the RSS file into HTML expect a file
> name or url as an argument from the command line.  Not only is there
> no command line on the Mac, but in droplet form I can't use a URL as
> an argument (obvious reason ":").
> 
> BBEdit seems to pass the current selection/file as an array to the
> perl filter being used.
> 
> That means  that I can't just:
> 
> $rss->parse($my_input);

When a Perl filter is run in BBEdit the selected text is written to a
temporary file. The full path name of this temporary file will be the
first (and only) element of @ARGV passed to the filter. If $rss->parse
is expecting a file name the following would work:

    $rss->parse(shift @ARGV);
    
    
Brad



# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org