What are you actually trying to achieve? When do you want the shell to
be executed? You can easily include shell in your Perl script, as a
heredoc, and then feed it to /bin/bash or anything else...
Ben
If you want to embed some BASH script inside perl and call it inside
perl program, the following
might help.
#!/usr/bin/perl
.....
.....
{
open(MYPROG,">bscript.sh") or die "..."
local $/ ;
$myprog = <DATA> ;
print MYPROG $myprog ;
}
system("$myprog");
$ret = $?>>8 ;
......
.....
__DATA__
#!/bin/bash
echo "this is my bash program" ;
....
....
...
Is this the one you want ?
Otherwise let me know, what exactly is your requirement.