Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: File path

by prasadbabu (Prior)
on Jan 19, 2009 at 10:29 UTC ( #737245=note: print w/replies, xml ) Need Help??


in reply to File path

Please see the module File::Which.

use strict; use warnings; use File::Which; my $path = which('notepad.exe'); print $path; output: ------- C:\WINDOWS\system32\notepad.exe

update: It will search only executable files, not all files. :-(

Prasad

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://737245]
help
Chatterbox?
[Corion]: Hi Discipulus ;) A good morning to you :)
Discipulus some monks here around are flammable.. or well they interact like a porcupine and an airbaloon

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2017-01-20 07:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (173 votes). Check out past polls.