| 1 | #!/bin/bash |
| 2 | |
| 3 | # Shell commands may precede the Perl script. |
| 4 | echo "This precedes the embedded Perl script within \"$0\"." |
| 5 | echo "===============================================================" |
| 6 | |
| 7 | perl -e 'print "This line prints from an embedded Perl script.\n";' |
| 8 | # Like sed, Perl also uses the "-e" option. |
| 9 | |
| 10 | echo "===============================================================" |
| 11 | echo "However, the script may also contain shell and system commands." |
| 12 | |
| 13 | exit 0 |