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

RE: [Fun With Perl] which perl



Yeah, -x would be better.

----------
From: 	Michael G Schwern
Sent: 	Thursday, June 10, 1999 6:45 PM
To: 	Eric Raible; fwp@technofile.org
Subject: 	Re: [Fun With Perl] which perl

On Thu, Jun 10, 1999 at 06:49:12PM -0700, Eric Raible wrote:
> Another cute (Win32) one-liner:
> 
> grep( -e "$_/perl.exe", split( ";", $ENV{PATH} ) )

Windows has no "which" or "type"?

Wouldn't that be -x, BTW?  I dunno if it makes a real difference on
Windows ("permissions?  What's that?")

-- 

Michael G Schwern                                           schwern@pobox.com
                    http://www.pobox.com/~schwern
     /(?:(?:(1)[.-]?)?\(?(\d{3})\)?[.-]?)?(\d{3})[.-]?(\d{4})(x\d+)?/i


==== Want to unsubscribe from this list? (Don't you love us anymore?)
==== Well, if you insist... Send mail with body "unsubscribe" to
==== fwp-request@technofile.org