tej has asked for the wisdom of the Perl Monks concerning the following question:

I want to call perl file from one "*.s" file, can i use system command for it? this .s file runs in unix environment.

Thank you

Replies are listed 'Best First'.
Re: Calling perl file from .s file
by cdarke (Prior) on Oct 22, 2010 at 07:21 UTC
    UNIX does not use file extensions as such, although some programs do (gcc springs to mind). Any suffix after a dot is just part of the filename - it might aid the user as a guide to the file type, but has no significance to the operating system. So on UNIX you can call your scripts anything you like, and run them using system, just so long as you conform to normal practice on your site.

      Thank you cdarke

Re: Calling perl file from .s file
by morgon (Priest) on Oct 22, 2010 at 07:29 UTC
    If you want to call Perl from your .s-files (what are these? do you mean the statistics software?) then this is not a Perl-question but you have to figure out how to run commands from your s-environment, so you should go to a forum that has experts on that.
Re: Calling perl file from .s file
by Anonymous Monk on Oct 22, 2010 at 06:44 UTC
    What is a *.s file?

    Read perlrun to learn how to call perl

Re: Calling perl file from .s file
by locked_user sundialsvc4 (Abbot) on Oct 22, 2010 at 13:20 UTC

    Also consult how your particular shell uses things such as the #!command_name (or, “shebang”) line.   Sometimes the first line in a file gives the system a cue as to what the file contains and how to process it.

    Your question has no definite answer.   You’ll have to find out.

      You are right..This has no definite anwser..I just did some trial and error and issue is resolved. Giving correct environment variables in system command worked. Thanks