> i have used the code below in linux and it works fine but on porting to
> win32 it's a problem
What is the problem?
> eval `cat tele.conf`;
C:\>cat
The name specified is not recognized as an
internal or external command, operable program or batch file.
Try this instead:
require "tele.conf";
you probably want to change -f to -e and it should work.
-Original Message-
From: David Armstrong [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 06, 2001 2:53 PM
To: [EMAIL PROTECTED]
Subject: include file help request
Could anyone please show how to include another perl file used as
, 2001 1:53 PM
> To: [EMAIL PROTECTED]
> Subject: include file help request
>
> Could anyone please show how to include another perl file used as a
> configuration script
> i have used the code below in linux and it works fine but on porting to
> win32 it's a pro
D]
Subject: include file help request
Could anyone please show how to include another perl file used as a
configuration script
i have used the code below in linux and it works fine but on porting to
win32 it's a problem
if (-f "tele.conf")
{
eval `cat tele.conf`;
}
else
{
print "
Could anyone please show how to include another perl file used as a
configuration script
i have used the code below in linux and it works fine but on porting to
win32 it's a problem
if (-f "tele.conf")
{
eval `cat tele.conf`;
}
else
{
print "Couldn't find file tele.conf in current directory.\n";