Return value from a perl script into a shell script
- by benjamin button
HI
below is my shell script:
#!/usr/bin/ksh
PERL_PATH=/usr/local/bin/perl
RET1=$(${PERL_PATH} test.pl)
echo $RET1
below is my perl script:
#!/usr/local/bin/perl
return 1;
when i run the shell script:
> s_.sh
Can't return outside a subroutine at test.pl line 3.
what is the problem over here?