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 = <>

Re: Perl floating point addition oddness

2009-06-04 Thread Chas. Owens
2009/6/3 Kelly Jones : > perl -le 'printf("%f %f %f\n", 4294967295, 2147483647*2**32, > 2147483647*2**32+4294967295)' > > 4294967295.00 9223372032559808512.00 9223372036854775808.00 > > Why? The answer is really 9223372036854775807 (one number lower), and > it's obvious that adding 2 an

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

Re: Can't locate HTML::Parser in @INC

2009-06-04 Thread Gunnar Hjalmarsson
Peter Nikolaidis wrote: I wrote a test script, which does nothing more than require HTML::Parser, and it fails with the following: catu...@www2:~$ perl test.plx Can't locate HTML::Parser in @INC (@INC contains: /usr/local/lib/perl5/5.10.0/x86_64-linux /usr/local/lib/perl5/5.10.0 /usr/local/li

Can't locate HTML::Parser in @INC

2009-06-04 Thread Peter Nikolaidis
Hello, We're running a Debian 5 (AMD64) server, with Perl 5.10 compiled from source because we require a non-threaded Perl for an e-commerce app. It fails to load, complaining that several modules were not found, including, for instance, HTML::Parser. I installed this via /usr/local/bin/perl -MCP