you can also do it with a shell command open ( RD_FH," find . -name myname |"); # if you want to write to stdin of the command put the | # before the command $Result = <RD_FH>;
print $Result; Mark ----- Original Message ----- From: "Dharmender Rai" <[EMAIL PROTECTED]> To: "Elanchezhian Sivanandam" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, October 21, 2002 6:21 AM Subject: Re: reg shell commands > Read File::Find. > Some shell commands return 0 for success and others > for failure or some problem. The case with 'find' is > the same. If you are taking the return value then of > course you will get the numerical stuff. > > > > --- Elanchezhian Sivanandam <[EMAIL PROTECTED]> > wrote: > hi, > > > > i want to find the hierarchial path of a file > > inside a perl script. > > the path can be found using the shell command > > find [path] expression.. > > and assign to a variable in perl. > > but it gives me a numerical value. > > how to get it as a string? > > > > thanks in advance. > > > > cheers../elan > > > > > > -- > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > __________________________________________________ > Do You Yahoo!? > Everything you'll ever need on one web page > from News and Sport to Email and Music Charts > http://uk.my.yahoo.com > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]