A
Amy Lee
Hi,
I'm a perl newbie, and I face something I can't handle.
I make a small perl script to find the shell script, one of parts is like
this:
.... ...
my $ROOT="/root"
print "Please enter the shell script name: ";
my $ANSWER=<STDIN>;
until (-e "$ROOT/$ANSWER")
{
print "Error: Couldn't find the specific shell script.\n";
print "Please enter the shell script name: ";
my $ANSWER=<STDIN>;
}
.... ...
In my root directory, there's a file called testlink script, when I input
the name testlink, it always shows that "Error: Couldn't find the specific
shell script.". And notice me to type again.
I don't know how to accomplish this function.
Thanks in advance~
Amy Lee
I'm a perl newbie, and I face something I can't handle.
I make a small perl script to find the shell script, one of parts is like
this:
.... ...
my $ROOT="/root"
print "Please enter the shell script name: ";
my $ANSWER=<STDIN>;
until (-e "$ROOT/$ANSWER")
{
print "Error: Couldn't find the specific shell script.\n";
print "Please enter the shell script name: ";
my $ANSWER=<STDIN>;
}
.... ...
In my root directory, there's a file called testlink script, when I input
the name testlink, it always shows that "Error: Couldn't find the specific
shell script.". And notice me to type again.
I don't know how to accomplish this function.
Thanks in advance~
Amy Lee