comp.lang.perl.misc
  Home FAQ Contact Sign in
comp.lang.perl.misc only
 
Advanced search
April 2008
motuwethfrsasuw
 123456 14
78910111213 15
14151617181920 16
21222324252627 17
282930     18
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
comp.lang.perl.misc Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Posting Guidelines for comp.lang.perl.misc ($Revision: 1.8 $)         


Author: tadmc
Date: Apr 24, 2008 23:19

Outline
Before posting to comp.lang.perl.misc
Must
- Check the Perl Frequently Asked Questions (FAQ)
- Check the other standard Perl docs (*.pod)
Really Really Should
- Lurk for a while before posting
- Search a Usenet archive
If You Like
- Check Other Resources
Posting to comp.lang.perl.misc
Is there a better place to ask your question?
- Question should be about Perl, not about the application area
How to participate (post) in the clpmisc community
- Carefully choose the contents of your Subject header
- Use an effective followup style
- Speak Perl rather than English, when possible
- Ask perl to help you
- Do not re-type Perl code
- Provide enough information ...
Show full article (16.63Kb)
no comments
  Re: PERL vs. Ruby         


Author: Ron Ford
Date: Apr 24, 2008 23:17

"kj" 987jk.com.invalid> wrote in message
news:dcgaab$cvo$1@reader2.panix.com...
> In Abigail
> writes:
>
>>I'd go for Python if I were you.
>
> Why do you prefer Python over Ruby?

ruby has mats.
--
"Life in Lubbock, Texas, taught me two things: One is that God loves you
and you're going to burn in hell. The other is that sex is the most
awful, filthy thing on earth and you should save it for someone you love."

~~ Butch Hancock
no comments
  FAQ 2.5 I grabbed the sources and tried to compile but gdbm/dynamic loading/malloc/linking/... failed. How do I make it work?         


Author: PerlFAQ Server
Date: Apr 24, 2008 18:03

This is an excerpt from the latest version perlfaq2.pod, which
comes with the standard Perl distribution. These postings aim to
reduce the number of repeated questions as well as allow the community
to review and update the answers. The latest version of the complete
perlfaq is at http://faq.perl.org .

--------------------------------------------------------------------

2.5: I grabbed the sources and tried to compile but gdbm/dynamic loading/malloc/linking/... failed. How do I make it work?

Read the INSTALL file, which is part of the source distribution. It
describes in detail how to cope with most idiosyncrasies that the
Configure script can't work around for any given system or architecture.

--------------------------------------------------------------------

The perlfaq-workers, a group of volunteers, maintain the perlfaq. They
are not necessarily experts in every domain where Perl might show up,
so please include as much information as possible and relevant in any
corrections. The perlfaq-workers also don't have access to every
operating system or platform, so please include relevant details for
corrections to examples that do not work on particular platforms.
Working code is greatly appreciated.
Show full article (1.31Kb)
no comments
  How to build the => in a statement?         


Author: ds456
Date: Apr 24, 2008 15:50

I am trying to build Perl/TK components from scratch inside another TK
program. I am stumped on how to represent the " => " in a statement
inside a variable.

This is a normal statement and works ...
$xw->Button(-text => "This is text")->place(-x => 1, -y => 1);

So does this...
$attrib = '-text';
$value = 'This is text'
$xw->Button($attrib => $value)->place(-x => 1, -y => 1);

Since the "equal/greater than" is a signal to the compiler rather than a
literal string, this does not...
$string = "-title => 'This is text'";
$xw->Button($string)->place(-x => 1, -y => 1);

I am trying to programatically build the inside of the parens and add
various options based on user input, but can't figure out how to represent
the => .

Suggestions anybody. Or is the above as clear as mud?

DS
19 Comments
  Apache::AutoIndex - Perl replacment for mod_autoindex         


Author: Petyr David
Date: Apr 24, 2008 13:07

anyone have an experience using this?

The real question:

does using this speed the creation of a directory index in Apache
significantly? We have directories with thousands of small files.

Thanks!
5 Comments
  FAQ 2.7 Is there an ISO or ANSI certified version of Perl?         


Author: PerlFAQ Server
Date: Apr 24, 2008 12:03

This is an excerpt from the latest version perlfaq2.pod, which
comes with the standard Perl distribution. These postings aim to
reduce the number of repeated questions as well as allow the community
to review and update the answers. The latest version of the complete
perlfaq is at http://faq.perl.org .

--------------------------------------------------------------------

2.7: Is there an ISO or ANSI certified version of Perl?

Certainly not. Larry expects that he'll be certified before Perl is.

--------------------------------------------------------------------

The perlfaq-workers, a group of volunteers, maintain the perlfaq. They
are not necessarily experts in every domain where Perl might show up,
so please include as much information as possible and relevant in any
corrections. The perlfaq-workers also don't have access to every
operating system or platform, so please include relevant details for
corrections to examples that do not work on particular platforms.
Working code is greatly appreciated.

If you'd like to help maintain the perlfaq, see the details in
perlfaq.pod.
no comments
  Trying to get a simple SOAP server to work         


Author: Philluminati
Date: Apr 24, 2008 11:20

I am trying to follow this guide to make a perl based SOAP server:

http://articles.techrepublic.com.com/5100-22-1046624.html

But the client times out waiting for a response. If I visit the perl
cgi script in the browser I get a "500 internal error" and when I look
in the apache error log I can see these messages, but I don't know
what they mean. Can someone help please?

[Thu Apr 24 19:38:26 2008] [error] [client MY_IP] Subroutine new
redefined at /usr/lib/perl5/site_perl/5.8.5/SOAP/Parser.pm line 42.
[Thu Apr 24 19:38:26 2008] [error] [client MY_IP] Subroutine DESTROY
redefined at /usr/lib/perl5/site_perl/5.8.5/SOAP/Parser.pm line 63.
[Thu Apr 24 19:38:26 2008] [error] [client MY_IP] Subroutine new
redefined at /usr/lib/perl5/site_perl/5.8.5/SOAP/Transport/HTTP/
Server.pm line 13.
[Thu Apr 24 19:38:26 2008] [error] [client MY_IP] Can't locate object
method "new" via package "HTTP::Response" (perhaps you forgot to load
"HTTP::Response"?) at /usr/lib/perl5/site_perl/5.8.5/SOAP/Transport/
HTTP.pm line 473.
[Thu Apr 24 19:38:26 2008] [error] [client MY_IP] Premature end of
script headers: funcs.cgi
Show full article (1.21Kb)
1 Comment
  pb download file on internet site         


Author: Winston75
Date: Apr 24, 2008 08:40

hi,

no errors in my code, but not downloaded file on my disk .
getstore ($url, $filename) not working? i don't know, any ideas?

thanks,

#!/usr/bin/perl -w

use strict;
use warnings;
use LWP::UserAgent;
use LWP::Simple;
use HTML::SimpleLinkExtor;

my $base='https://username:password@www.mysite.com/index.html';
my $ua = LWP::UserAgent->new(agent => 'Mozilla/4.73 [en] (X11; I;
Linux 2.2.16 i686; Nav)' );
my $req = HTTP::Request->new( GET => "${base}" );
my $res = $ua->request($req);
die $res->status_line
if not $res->is_success;

my $extractor = HTML::SimpleLinkExtor->new(); $extractor->parse($res-
>content);
Show full article (0.92Kb)
11 Comments
  FAQ 2.6 What modules and extensions are available for Perl? What is CPAN? What does CPAN/src/... mean?         


Author: PerlFAQ Server
Date: Apr 24, 2008 06:03

This is an excerpt from the latest version perlfaq2.pod, which
comes with the standard Perl distribution. These postings aim to
reduce the number of repeated questions as well as allow the community
to review and update the answers. The latest version of the complete
perlfaq is at http://faq.perl.org .

--------------------------------------------------------------------

2.6: What modules and extensions are available for Perl? What is CPAN? What does CPAN/src/... mean?

CPAN stands for Comprehensive Perl Archive Network, a multi-gigabyte
archive replicated on hundreds of machines all over the world. CPAN
contains source code, non-native ports, documentation, scripts, and many
third-party modules and extensions, designed for everything from
commercial database interfaces to keyboard/screen control to web walking
and CGI scripts. The master web site for CPAN is http://www.cpan.org/
and there is the CPAN Multiplexer at http://www.cpan.org/CPAN.html which
will choose a mirror near you via DNS. See http://www.perl.com/CPAN
(without a slash at the end) for how this process works. Also,
http://mirror.cpan.org/ has a nice interface to the
http://www.cpan.org/MIRRORED.BY mirror directory.
Show full article (3.37Kb)
no comments
  Time::Local busted?         


Author: Mark Seger
Date: Apr 24, 2008 06:00

I have a script that tails a file and on a SIGTERM I want it to exit.
Sounds simple enough. It traps the signal, executes an 'exit', and then
hangs! The real odd thing is one of the modules I'm 'using' is
Time::Local. If I comment it out the script exits on SIGTERM and if it
leave it in it doesn't. The only way I was able to figure this out was
methodically removing pieces of code until it worked correctly and as
you might guess, the last thing I thought of was removing some of the
'use' statements. Anyhow this leads to a few questions:

- does anyone have a clue what this is breaking things?
- how would you have tracked down this problem with the Time module
- how can I make this work correctly AND use Time?

Anyhow, here's a pretty small piece of code that fails! Just comment
out the 'use Time' and it works...

#!/usr/bin/perl -w

use strict;
use Time::Local;
Show full article (1.40Kb)
4 Comments
1 2