60 PerlMonks - Newest Nodes New nodes appearing on PerlMonks http://perlmonks.org/index.pl?node_id=30175 http://blogs.law.harvard.edu/tech/rss PerlMonks Newest Nodes XML Generator 961 PerlMonks 2016-10-01 05:02:02 rss,clean Fri Sep 30 19:02:02 2016 30 20160930190202 Fri Sep 30 19:02:02 2016 http://perlmonks.org/ Anonymous Monk Re^3: Prepending to a file ibm1620 http://perlmonks.org/index.pl?node_id=1173047 Instead of or die "Could not open file ", FILE, ": $!"; don't you want or die "Could not open file ", $file, ": $!"; ... note Sat, 01 Oct 2016 03:32:17 +0000 http://perlmonks.org/index.pl?node_id=1173047 1173047 750012 2016-09-30 23:32:17 ibm1620 Re^3: Converting Binary to hex Anonymous Monk http://perlmonks.org/index.pl?node_id=1173046 :) no printf '%b', 100_010; __END__ 11000011010101010 ... note Sat, 01 Oct 2016 01:21:43 +0000 http://perlmonks.org/index.pl?node_id=1173046 1173046 961 2016-09-30 21:21:43 Anonymous Monk Re^2: Converting Binary to hex AnomalousMonk http://perlmonks.org/index.pl?node_id=1173045 ... assigning a numeric value to $binaddr, but treating it as though it contained the string '100010' ... But isn't the stringization of 100,010 (decimal) e... note Sat, 01 Oct 2016 00:37:52 +0000 http://perlmonks.org/index.pl?node_id=1173045 1173045 634253 2016-09-30 20:37:52 AnomalousMonk Re^5: Bad File Descriptor ( apache don't know how to spawn child process ) Anonymous Monk http://perlmonks.org/index.pl?node_id=1173044 what happens if you rename the file? and starta newfile.pl, copy paste the contents into that?... note Sat, 01 Oct 2016 00:28:29 +0000 http://perlmonks.org/index.pl?node_id=1173044 1173044 961 2016-09-30 20:28:29 Anonymous Monk Re^4: Simple http server one-liner for some static files? bcarroll http://perlmonks.org/index.pl?node_id=1173043 How about this approach: Create a text file in a directory in your shell's PATH named SimpleHTTPServer.pl Paste the following code into the SimpleHTTPServer.pl text file ... note Sat, 01 Oct 2016 00:27:06 +0000 http://perlmonks.org/index.pl?node_id=1173043 1173043 734273 2016-09-30 20:27:06 bcarroll Re^4: Bad File Descriptor ( apache don't know how to spawn child process ) Milti http://perlmonks.org/index.pl?node_id=1173042 As far as I can tell the file permissions are the same on all the cgi programs, i.e. everyone has the minimum of read & execute. I tried the different addressing suggested earlier and it didn't... note Sat, 01 Oct 2016 00:14:05 +0000 http://perlmonks.org/index.pl?node_id=1173042 1173042 1024360 2016-09-30 20:14:05 Milti Re: Bad File Descriptor Marshall http://perlmonks.org/index.pl?node_id=1173041 On Windows, the path in the #! line does not matter, although the -w switch does matter. You actually don't even need a "#!" line at all. For Windows, the associations and file type info is what matte... note Fri, 30 Sep 2016 23:50:34 +0000 http://perlmonks.org/index.pl?node_id=1173041 1173041 732669 2016-09-30 19:50:34 Marshall Re^3: Bad File Descriptor ( apache don't know how to spawn child process ) Anonymous Monk http://perlmonks.org/index.pl?node_id=1173040 The same Shebang line, #!C:/Perl/bin/perl, works on other cgi programs on this server. In that case check file permissions. The error message you quoted does say "cgiprogram.pl is not... note Fri, 30 Sep 2016 23:45:30 +0000 http://perlmonks.org/index.pl?node_id=1173040 1173040 961 2016-09-30 19:45:30 Anonymous Monk Re^2: Bad File Descriptor ( apache don't know how to spawn child process ) Milti http://perlmonks.org/index.pl?node_id=1173039 The same Shebang line, #!C:/Perl/bin/perl, works on other cgi programs on this server. The location of the perl .exe file is as noted, C:/Perl/bin/perl, where perl is the executable .exe file. I wi... note Fri, 30 Sep 2016 23:34:09 +0000 http://perlmonks.org/index.pl?node_id=1173039 1173039 1024360 2016-09-30 19:34:09 Milti