Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Which

by raflach (Pilgrim)
on Jun 22, 2000 at 01:59 UTC ( [id://19358]=note: print w/replies, xml ) Need Help??


in reply to Which

How about:
sub Which($) { my $file = shift; my $loc = `which $file`; chomp $loc; return $loc; }
I didn't actually test to see if it was faster, but it seems to me it would be...
Course, it only works on a UNIX system.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://19358]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-19 02:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found