in reply to Need help using Perl -e in C shell

perl <<'END' your perl script here END
And stop using the c-shell!

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^2: Need help using Perl -e in C shell
by agidden (Novice) on Apr 27, 2005 at 21:10 UTC
    Ahh. Here-doc. Have not used this in 10 years. Completely forgot to try this. Thanks for your assistance. I wrote UNIX installers for many years and should have thought of this. We have a solution, but I will try this as well since it will allow the code to be formatted a bit nicer. FYI: We have to add some new features to a very old legacy application that generates source code. Therein lies the constraint to use the existing shell scripts and to not be able to add any files. Amazing what you will do when a large customer throws a lot of money at you. My team and I sincerely appreciate your assistance with this issue. We spent too long on it and were just not getting anywhere.