Re: Specifying input file on #! line

2009-06-07 Thread Raymond Wan
Hi Chap, Chap Harrison wrote: On Jun 4, 2009, at 8:10 PM, Raymond Wan wrote: (Actually I dropped the whole idea when I decided to have the script write the filtered results back into the clipboard -- which necessitated hard-coding the path into the script anyway. Moreover, the whole thing

Re: Specifying input file on #! line

2009-06-07 Thread Chap Harrison
On Jun 4, 2009, at 8:10 PM, Raymond Wan wrote: Chap Harrison wrote: I've read perldoc perlrun but find it pretty confusing. Things I've tried unsuccessfully are: #!/usr/bin/perl /dev/clipboard #!/usr/bin/perl < /dev/clipboard #!/usr/bin/perl -- /dev/clipboard The body of the script always be

Re: Specifying input file on #! line

2009-06-04 Thread Chas. Owens
On Thu, Jun 4, 2009 at 14:40, Chap Harrison wrote: > I'm writing a collection of filters that read from the CygWin / Windows > system copy buffer (/dev/clipboard) and write to STDOUT.  I can certainly > write Perl to open this "file" and read from it, but I wondered if there was > a way to put it

Re: Specifying input file on #! line

2009-06-04 Thread Raymond Wan
Hi Chap, Chap Harrison wrote: I've read perldoc perlrun but find it pretty confusing. Things I've tried unsuccessfully are: #!/usr/bin/perl /dev/clipboard #!/usr/bin/perl < /dev/clipboard #!/usr/bin/perl -- /dev/clipboard The body of the script always begins while (defined (my $line = <>

Specifying input file on #! line

2009-06-04 Thread Chap Harrison
I'm writing a collection of filters that read from the CygWin / Windows system copy buffer (/dev/clipboard) and write to STDOUT. I can certainly write Perl to open this "file" and read from it, but I wondered if there was a way to put it into the shebang line. I don't have any reason to w