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

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



>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);

No, $rss->parse() expects a string.

$rss->parsefile() expects a filename.

I could rewrite the script to use the parsefile method....

--B

# Brian McNett                                      Fungal Parataxonomy
# Webmaster, Staff Writer               Mycology Information (Mycoinfo)
#                              **The World's First Mycology E-Journal**   
# <mailto:webmaster@mycoinfo.com>            <http://www.mycoinfo.com/>
# First they ignore you. Then they laugh at you. Then they fight you.
# Then you win.                                     --Mohandas Gandhi


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