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

Would perl -x (man perlrun) be a solution here to cleanly embed the perl code (the here-doc method suggested above is also good) but still be allowed within your constraints?
#!/usr/bin/csh -f /usr/bin/perl -x $0 exit; #!/usr/bin/perl printf "I'm a perl script\n";