How do I return a perl variable to a .ksh script?
Posted
by Dave
on Stack Overflow
See other posts from Stack Overflow
or by Dave
Published on 2010-03-14T19:52:51Z
Indexed on
2010/03/14
19:55 UTC
Read the original article
Hit count: 249
I have a .ksh script that calls a perl pgm. The perl pgm creates some important data that the .ksh script needs to act on. Example:
.ksh pgm
#!/usr/bin/ksh
abc.pl > $logFile
# perl pgm creates variable $importantData See below.
# HOW DO I GET THE .KSH SCRIPT TO SEE $importantData ???
def.ksh $importantData # send important data to another .ksh script
exit
.
Perl pgm
$importantData = somefunction();
exit;
© Stack Overflow or respective owner