comp.lang.perl.misc
  Home FAQ Contact Sign in
comp.lang.perl.misc only
 
Advanced search
February 2008
motuwethfrsasuw
    123 5
45678910 6
11121314151617 7
18192021222324 8
2526272829   9
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
  how can DBI not let AutoCommit be turned off????         


Author: gbs
Date: Feb 8, 2008 20:53

mysqlPP.pm line 299 does not allow AutoCommit to be set to 0; it just
does not! How is this possible?

Greg Silverman
HP
Cupertino, CA
1 Comment
  FAQ 2.6 What modules and extensions are available for Perl? What is CPAN? What does CPAN/src/... mean?         


Author: PerlFAQ Server
Date: Feb 8, 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.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
  FAQ 3.5 How do I debug my Perl programs?         


Author: PerlFAQ Server
Date: Feb 8, 2008 12:03

This is an excerpt from the latest version perlfaq3.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 .

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

3.5: How do I debug my Perl programs?

(contributed by brian d foy)

Before you do anything else, you can help yourself by ensuring that you
let Perl tell you about problem areas in your code. By turning on
warnings and strictures, you can head off many problems before they get
too big. You can find out more about these in strict and warnings.

#!/usr/bin/perl
use strict;
use warnings;

Beyond that, the simplest debugger is the "print" function. Use it to
look at values as you run your program:

print STDERR "The value is [$value]\n";

The "Data::Dumper" module can pretty-print Perl data structures:
Show full article (2.45Kb)
no comments
  Using END and the die function         


Author: pgodfrin
Date: Feb 8, 2008 11:07

Greetings,
I'd like to die() with a return code (no pun intended) - I'm not sure
how to do it without wrapping some extra code around die. Any
thoughts?

Here's a snippet:
if($?) { $return_code=$?; die "Error generating temp file names\n" ;}
...
END
{
if (defined WL) { close WL; }
print "Script ended. RC=$return_code \n";
$?=$return_code;
}

This works fine if I explicitly code both steps - first setting the
$return_code and then executing die. But, this kind of statement won't
permit that 'cause of the nature of the or operator:

mkdir($tgt_dir) or die "Mkdir ($tgt_dir) command failed.\n";
Show full article (0.71Kb)
16 Comments
  FAQ 2.8 Where can I get information on Perl?         


Author: PerlFAQ Server
Date: Feb 8, 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.8: Where can I get information on Perl?

The complete Perl documentation is available with the Perl distribution.
If you have Perl installed locally, you probably have the documentation
installed as well: type "man perl" if you're on a system resembling
Unix. This will lead you to other important man pages, including how to
set your $MANPATH. If you're not on a Unix system, access to the
documentation will be different; for example, documentation might only
be in HTML format. All proper perl installations have fully-accessible
documentation.

You might also try "perldoc perl" in case your system doesn't have a
proper man command, or it's been misinstalled. If that doesn't work, try
looking in /usr/local/lib/perl5/pod for documentation.
Show full article (2.55Kb)
no comments
  manually installing a ppm         


Author: Nospam
Date: Feb 8, 2008 05:15

For some strange reason when unable to install a ppm with activeperl, what
are the step by step instructions on installing this manually?
no comments
  Re: lcd via NET::FTP         


Author: Joserra
Date: Feb 8, 2008 02:45

On 6 feb, 07:24, vikram gmail.com> wrote:
> Hi Everyone,
>
> I want to view the local current directory using perl Net::FTP
> module..When i use lcd("local folder") its showing me the error.
>
> Can't locate object method "lcd" via package "Net::FTP"
>
> Thanks in advance.

You could use ls("folder") method or if you want more detail
information you could use dir("folder") method. For viewing the local
current directory, I use ls("").

Example:
...
my $ftp = Net::FTP->new($IP);
$ftp->login($USER,$PASSWORD);
my @files = $ftp->ls("");
...
no comments
  Posting Guidelines for comp.lang.perl.misc ($Revision: 1.8 $)         


Author: tadmc
Date: Feb 8, 2008 00:15

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
  FAQ 2.13 What mailing lists are there for Perl?         


Author: PerlFAQ Server
Date: Feb 8, 2008 00: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.13: What mailing lists are there for Perl?

Most of the major modules (Tk, CGI, libwww-perl) have their own mailing
lists. Consult the documentation that came with the module for
subscription information.

A comprehensive list of Perl related mailing lists can be found at:

http://lists.perl.org/

--------------------------------------------------------------------
Show full article (1.30Kb)
no comments