in reply to Re^5: how to create makefile?
in thread how to create makefile?

well, as I said, the purpose was to run the script automatically and I got the idea from the makefile that is used for c programs in which we list all c programs, compile, create obj file and then, run the executable. but as I said, perhaps I wrongly made the analogy with the perl makefile.

Replies are listed 'Best First'.
Re^7: how to create makefile?
by RonW (Parson) on Jan 09, 2015 at 17:20 UTC

    Unlike C, Perl uses "Just in Time" compiling. So you only need to:

    perl pgm.pl perl pgm2.pl

    If you need to only run pgm2.pl when pgm.pl completes successfully, then in most shells:

    perl pgm.pl && perl pgm2.pl

    will do that.