Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Perl: porters

Re: perl-5 MSDOS

 

 

Perl porters RSS feed   Index | Next | Previous | View Threaded


pauls at pauls

Sep 18, 1995, 5:54 AM

Post #1 of 3 (75 views)
Permalink
Re: perl-5 MSDOS

Ian,
I have a question for you regarding using PERl 5 on a PC.

In a program (call it "oscar.bat" for convenience) I have code that looks
like this...


system("fred blah bleh");



If the program "fred.bat" is in the directory where oscar.bat lives
everthing is ok. but, if fred.bat is not in the same directory it does
execute. Fred.bat is in a directory included in t he PC path variable.

Have you ever seen this kind of behavior before? Is it a Perl problem or a
PERL on a PC problem??

ANy tips or good ideas or can you recommend anyone who might be able to help
me??


THanks Ian

Paul Spitalny


ian at pipex

Sep 19, 1995, 1:40 AM

Post #2 of 3 (71 views)
Permalink
Re: perl-5 MSDOS [In reply to]

paul alan spitalny <pauls [at] pauls> wrote:

> system("fred blah bleh");

> Have you ever seen this kind of behavior before? Is it a Perl problem or a
> PERL on a PC problem??

The latter, assuming that by "PC" you mean "MSDOS".

You need to be very explicit about which version of perl you're using.
Check out the porters' name and version number before asking.

> ANy tips or good ideas or can you recommend anyone who might be able to help
> me??

The porters' list is right, but you need to say exactly which version
you're using.

I've never used perl 5 on a PC; my usage of MSDOS is steadily diminishing.
I do have a laptop PC, which runs perl 5. It also runs Linux...

Ian


pauls at pauls

Sep 26, 1995, 3:43 AM

Post #3 of 3 (72 views)
Permalink
Re: perl-5 MSDOS [In reply to]

Jcwillia,
I am using perl on my PC (perl 5.0 version 5.0M5) . It is the MSdos version

I am getting some strange behavior when I use ' system("blah blah"); "

Let me describe the problem.

two directories A and B. B is included in my path declaration in
autoexec.bat, A is not.
I write a perl program in directory A. In the program in directory A (call
the program "fred.bat") I call a program in directory B called "oscar.bat"
usinf the followint code:

system(oscar arg1 arg2");

The oscar program does not execute. I even tried this:

system("c:\\dir1\\dir2\\oscar");

this also doesn't work. So, I copied "oscar.bat" intot A directory and
everthing appeared fine until I started to edit oscar.bat (the one in
directory A). My edits to the code seemed to have no effect. I found out
that the oscar.bat that was being executed was the original one in directory
B! So, I had to copy oscar.bat in to directory A to get "fred" to call the
oscar.bat that is in directory B. This seems crazy.

Do you have any idea of what is going on here???

Any help or tips would be greatly appreciated..

Thanks

Paul Spitalny
Washington State, USA

Perl porters RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.