It's strange and terrible and I'm not sure how to get something out of the perl part, but this sort of works (with bash, at least):
#!/bin/sh echo This is bash i=12 echo $i perl <<__HERE__ print "This is perl\n"; my \$i = $i; print ++\$i . "\n"; __HERE__ echo This is bash again echo $i
Good luck with it (although I'm not quite sure what you hope to gain.)
In reply to Re: perl script inside a shell script
by eg
in thread perl script inside a shell script
by Anish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |