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
<[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
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,