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
  Proposal for a new group         


Author: A Dude
Date: Apr 10, 2008 23:23

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


Author: tadmc
Date: Apr 10, 2008 23:18

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
  GET PAID INSTANTLY FROM ONLINE WORK. CHILD CAN MAKE MONEY HERE.THE         


Author: vellington
Date: Apr 10, 2008 18:38

GET PAID INSTANTLY FROM ONLINE WORK. CHILD CAN MAKE MONEY HERE.THE
LINK IS BELOW

www.jeeva235.blogspot.com

EASY WORK AT HOME
no comments
  FAQ 9.5 How do I extract URLs?         


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

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

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

9.5: How do I extract URLs?

You can easily extract all sorts of URLs from HTML with
"HTML::SimpleLinkExtor" which handles anchors, images, objects, frames,
and many other tags that can contain a URL. If you need anything more
complex, you can create your own subclass of "HTML::LinkExtor" or
"HTML::Parser". You might even use "HTML::SimpleLinkExtor" as an example
for something specifically suited to your needs.

You can use URI::Find to extract URLs from an arbitrary text document.

Less complete solutions involving regular expressions can save you a lot
of processing time if you know that the input is simple. One solution
from Tom Christiansen runs 100 times faster than most module based
approaches but only extracts URLs from anchors where the first attribute
is HREF and there are no other attributes.
Show full article (2.06Kb)
no comments
  Getting started with HTTP::Proxy         


Author: arvinporthog
Date: Apr 10, 2008 13:11

Hi. I don't know anything about proxies or networking yet I've been
tasked with protecting some content on a media server and I'm guessing
a proxy is the way to go. I'm playing around with HTTP::Proxy just to
get a feel for things. All of the examples and discussions seem geared
to a proxy which sits on a user's computer while what I want is to put
the proxy on an intermediate server between the user and the media
server. So just to test I set up a bare bones HTTP::Proxy script on
one of our web servers. It runs and I can connect to it but I don't
know where to start trying to get it to do more:

use strict;
use warnings;
use HTTP::Proxy;

my $proxy = new HTTP::Proxy (port => 8100, host => undef);
$proxy->start;

When I connect http://www.myserver.edu:8100 I get the message:
"Scheme is not supported by this proxy."

How can I do something simple like pipe the google homepage to my
browser (not redirect!)?
no comments
  FAQ 8.47 How do I keep my own module/library directory?         


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

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

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

8.47: How do I keep my own module/library directory?

When you build modules, tell Perl where to install the modules.

For "Makefile.PL"-based distributions, use the PREFIX and LIB options
when generating Makefiles:

perl Makefile.PL PREFIX=/mydir/perl LIB=/mydir/perl/lib

You can set this in your CPAN.pm configuration so modules automatically
install in your private library directory when you use the CPAN.pm
shell:

%% cpan
cpan> o conf makepl_arg PREFIX=/mydir/perl,LIB=/mydir/perl/lib
cpan> o conf commit

For "Build.PL"-based distributions, use the --install_base option:

perl Build.PL --install_base /mydir/perl
Show full article (1.87Kb)
no comments
  Unpack - getting values directly into the correct variables         


Author: PugetSoundSylvia
Date: Apr 10, 2008 08:52

Hello all,

I'm just starting to get into perl, so please forgive me if I'm asking
something obvious.

I'm using the unpack function to parse through a fixed length file.
It's working well, but there's lots and lots of fields, and I'd like
to make the code more readable.

What I have now is this:

$LOGFILE = "text.log";
open(LOGFILE) or die("Could not open log file.");

# Define the record format for unpack function
$BaseBSPFileTemplate =
"A3" # RecordType Field 0
."A8" # SequenceNumber Field 1
."A2" # RecordTypeSuffix Field 2
."A6" # CreateDate Field 3
."A6" # TransactionNumber Field 4
."A15" # DataNumber Field 5
."A98" # UpdateDate Field 6
;
Show full article (1.32Kb)
9 Comments
  FAQ 8.45 How do I install a module from CPAN?         


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

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

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

8.45: How do I install a module from CPAN?

The easiest way is to have a module also named CPAN do it for you. This
module comes with perl version 5.004 and later.

$ perl -MCPAN -e shell

cpan shell -- CPAN exploration and modules installation (v1.59_54)
ReadLine support enabled
cpan> install Some::Module

To manually install the CPAN module, or any well-behaved CPAN module for
that matter, follow these steps:

1 Unpack the source into a temporary area.

2
perl Makefile.PL
Show full article (2.01Kb)
no comments
  FAQ 8.41 How do I use an SQL database?         


Author: PerlFAQ Server
Date: Apr 10, 2008 00:03

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

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

8.41: How do I use an SQL database?

The DBI module provides an abstract interface to most database servers
and types, including Oracle, DB2, Sybase, mysql, Postgresql, ODBC, and
flat files. The DBI module accesses each database type through a
database driver, or DBD. You can see a complete list of available
drivers on CPAN: http://www.cpan.org/modules/by-module/DBD/ . You can
read more about DBI on http://dbi.perl.org .

Other modules provide more specific access: Win32::ODBC, Alzabo, iodbc,
and others found on CPAN Search: http://search.cpan.org .

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