in reply to perl script inside a shell script
[~] $ cat test.sh #!/bin/sh echo "In shell part" FOO=`/usr/bin/perl -x $0` echo <<'__END__' > /dev/null #!/usr/bin/perl -wl print "In perl"; __END__ echo "Perl said: $FOO" echo "Back in shell" [~] $ sh test.sh In shell part Perl said: In perl Back in shell [~] $
Ain't that fun? See perlrun for details on `-x'.
-dlc
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: perl script inside a shell script
by Anonymous Monk on Jun 27, 2002 at 18:06 UTC | |
|
NEW! perl script inside a shell script??
by Anonymous Monk on Jun 27, 2002 at 18:41 UTC | |
by Anonymous Monk on Jun 25, 2013 at 18:05 UTC | |
by Anonymous Monk on Jun 25, 2013 at 18:08 UTC |