Return value from a perl script into a shell script
Posted
by benjamin button
on Stack Overflow
See other posts from Stack Overflow
or by benjamin button
Published on 2010-05-10T14:34:18Z
Indexed on
2010/05/10
14:44 UTC
Read the original article
Hit count: 446
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?
© Stack Overflow or respective owner