Re: #!/usr/bin/perl ... and __DATA__

2006-07-09 Thread Chasecreek Systemhouse
On 7/9/06, Dr.Ruud <[EMAIL PROTECTED]> wrote: perl -x$HOME $HOME/sxVHost.conf First test it from the command line. Thx! That's got it. The docs show a space between the -x and My version works on the command line but not as part of a BASH shell; I spent a lot of time troubleshooting thi

Re: #!/usr/bin/perl ... and __DATA__

2006-07-09 Thread John W. Krahn
Chasecreek Systemhouse wrote: > On 7/9/06, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: >> Try: >> >> #!/bin/sh >> perl -pe '' <> 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

Re: #!/usr/bin/perl ... and __DATA__

2006-07-09 Thread Dr.Ruud
"Chasecreek Systemhouse" schreef: > Shell script example: > #!/bin/sh > perl -x ~ /home/bill/sxVHost.conf Remove the space after -x. Don't assume that ~ will be $HOME. perl -x$HOME $HOME/sxVHost.conf First test it from the command line. -- Affijn, Ruud "Gewoon is een tijger." -- To uns

Re: #!/usr/bin/perl ... and __DATA__

2006-07-09 Thread Chasecreek Systemhouse
On 7/9/06, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: Try: #!/bin/sh perl -pe '' < 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 Whe

Re: #!/usr/bin/perl ... and __DATA__

2006-07-09 Thread Mr. Shawn H. Corey
Chasecreek Systemhouse wrote: > Are there any syntax tricks that would allow both the "shebang and > __DATA__" on the same line? > No. Try: #!/bin/sh perl -pe ''