in reply to Re: system subroutine is ignored
in thread system subroutine is ignored

when I put the following as Mr.Poj said

rem start.bat program glomosim data.in
I get the following error : Can't locate object method "rem" via package start...

Replies are listed 'Best First'.
Re^3: system subroutine is ignored
by ww (Archbishop) on Jun 29, 2013 at 18:24 UTC
    Did you actually put that in a batch file (read your M$ manual) and then call the batch file from Perl, or did you merely try to insert it in the code you've shown?

    If you didn't program your executable by toggling in binary, it wasn't really programming!

Re^3: system subroutine is ignored
by poj (Abbot) on Jun 29, 2013 at 17:40 UTC

    Remove the first line and try again.

    poj

      I write as you have written !

      glomosim data.in; system("start.in");
      I see it is incorrect to put them like this without "" inside any function or subrotine :/ !! I got the error : Can't locate object method "glomosim" via package "data"..

        It seems that you have the ".bat" extension assocoated with the perl interpreter.

        try running it with this command:

        cmd /c start.bat
        If that works, and plain "start.bat" gives you an error, please google how to associate ".bat" files with the windows command interpreter (after all, this is not "dos-monks")

                     "The trouble with the Internet is that it's replacing masturbation as a leisure activity."
                -- Patrick Murray

        I think you misunderstood me. Create another text file called start.bat with one line ;

        glomosim data.in

        Test that by typing start.bat into your DOS cmd line

        If that works, in your perl script try the command system("start.bat")

        poj