Re: executing filename with ~ in perl

2002-03-27 Thread Paul Johnson
On Wed, Mar 27, 2002 at 11:24:16AM -0800, Agustin Rivera wrote: > x = "~/rambo/bin/script1"; You'll want to check out the glob function. perldoc -f glob -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

Re: executing filename with ~ in perl

2002-03-27 Thread Agustin Rivera
<[EMAIL PROTECTED]> Sent: Wednesday, March 27, 2002 11:00 AM Subject: executing filename with ~ in perl > I have the following > > $x = ~rambo/bin/script1; (where script1 is an executable shell script) > > $ret = `x`; > > The above will not work. > > However

executing filename with ~ in perl

2002-03-27 Thread Roy Peters
I have the following $x = ~rambo/bin/script1; (where script1 is an executable shell script) $ret = `x`; The above will not work. However if I define $x = /home/apple/rambo/bin/script1; (ie I give a full pathname) $ret = `x`; This will work. How do I make the first example work? By the way,