in reply to How to execute commands in the same shell as Perl script

$ perl myscript.pl | other commands | and more comands

(Or ; or && or || instead |). Are you sure that this is what you want?

Alternativelly, do with perl all the shell script work