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

Re: [MacPerl] Whois as BBEdit Perl Filter?



On Fri, May 12, 2000 at 09:28:00AM -0700, Brian McNett wrote:
> I'd like to adapt the sample whois client from the Perl Power Tools project
> for use as a BBEdit Perl Filter, but I've run into a bit of a problem or
> two.  I can figure out how to get the program to work as a stand-alone, but
> not as a filter.
> 
> Also the whois server returns text with Unix newlines, which need
> conversion.
> 
> The unmodified code is here:
> 
> http://language.perl.com/ppt/src/whois/index.html

The doriath site has two versions:

http://doriath.perl.com/ppt/src/whois/index.html


> BBEdit places the pathname to the current file (or a temporary file if the
> current window is not saved) in @ARGV.  The text goes to STDIN and can be
> read off $_.
> 
> I thought:
> 
> @ARGV = split;
> 
> might do the trick.  Alas, no.

@ARGV = split " ", <STDIN>;

or

@ARGV = split while <STDIN>;

?

Ronald

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