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

Remove the first line and try again.

poj

Replies are listed 'Best First'.
Re^4: system subroutine is ignored
by Njoud (Initiate) on Jun 29, 2013 at 17:49 UTC

    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

        ...or, maybe, (as poj notes earlier (but below) and as I later noted above), Njoud
        1. tried to insert poj's suggested test-code (batch script) directly into his Perl script?
        2. doesn't read carefully?
        3. doesn't have a firm grasp on his OS?
        4. etc... (possibilities too insulting to specify).

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

      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