ram0607 has asked for the wisdom of the Perl Monks concerning the following question:

Hi All, how to return a string value from perl script to unix script

Replies are listed 'Best First'.
Re: Returning string from perl script
by choroba (Cardinal) on Nov 08, 2011 at 11:21 UTC
    By "unix script", you probably mean a shell script. The easiest way is just to print the string in Perl and capture its output in the shell:
    returned_string=`perl -e 'print "String"'`