On 7/9/06, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote:
Try:

#!/bin/sh
perl -pe '' <<End_Of_Data
foo
bar
End_Of_Data

See `perldoc perlrun` and `man sh` for details.

OK, well; can someone tell me how to properly use the -x switch?  What
I'm trying is to have Perl code reside inside an Apache conf file:

Shell script example:
#!/bin/sh
perl -x ~ /home/bill/sxVHost.conf

Where the content of /home/bill/sxVHost.conf is:
<IfDefine SX>
#!/usr/bin/perl -w
print "Content-type: text/plain\n\nlegal\n";
__END__
</IfDefine>

What I get as output from execute sh sx is:
No Perl script found in input

I am using Perl 5.8.7.

Ideas?
--
WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to