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
  Python's doc problems: sort         


Author: xahlee
Date: Apr 29, 2008 19:48

Of my Python and Perl tutorial at http://xahlee.org/perl-python/index.html

the most popular page is

“Sorting in Python and Perlâ€
http://xahlee.org/perl-python/sort_list.html

For example, in last week, that page is fetched 550 times.
The second most popular page, trails quite a distance. Here's the top
3 pages and their number of times fetched:

550 http://xahlee.org/perl-python/sort_list.html
341 http://xahlee.org/perl-python/system_calls.html
222 http://xahlee.org/perl-python/index.html

Note that the first 2 pages are far more popular than the entry page
the table of contents.

Apparently, and also verified by my web log, that people have
difficulty in using sort, and they find my pages thru web search
engines.

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

In 2005, i wrote over ten essays detailing Python's documentation
problems. One of them is titled:
Show full article (10.44Kb)
8 Comments
  Eclipse 4.0 beta - New, Crisp UI. Supports C/C++/Java/PHP/Perl by default         


Author: Ubersite
Date: Apr 29, 2008 19:47

www.ubersite.com - Future of media

get the latest news on open source

this is a post by the users of ubersite so we cannot be held liable or
to blame.

-ubersite
no comments
  Read 20 lines when pressing n for next         


Author: s9uzaa
Date: Apr 29, 2008 18:21

Hi,
I would like to write a perl script with the following criteria match.
1. open any text file taken the name from the command line.
2. read top 20 lines and stops, then
3. ask to press letter "n or p" (for next/previous) to print next or
previous 20 lines.
would appreciate any kind of help.
4. must have subroutine used.

thanks
30 Comments
  FAQ 3.7 How do I cross-reference my Perl programs?         


Author: PerlFAQ Server
Date: Apr 29, 2008 18: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.7: How do I cross-reference my Perl programs?

The B::Xref module can be used to generate cross-reference reports for
Perl programs.

perl -MO=Xref[,OPTIONS] scriptname.plx

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

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.17Kb)
no comments
  FAQ 3.1 How do I do (anything)?         


Author: PerlFAQ Server
Date: Apr 29, 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.1: How do I do (anything)?

Have you looked at CPAN (see perlfaq2)? The chances are that someone has
already written a module that can solve your problem. Have you read the
appropriate manpages? Here's a brief index:
Show full article (2.01Kb)
no comments
  Compress::Zlib inflateInit help         


Author: hymie!
Date: Apr 29, 2008 07:38

Greetings.

I'm using Compress::Zlib for the first time. I'm working with strings
are are ZLib-compressed but not fully RFC1950 compliant. I'm getting
some errors and, although I have it working, I know there has to be
a better way.

I started pretty simple:
Show full article (3.48Kb)
4 Comments
  FAQ 3.12 Where can I get perl-mode for emacs?         


Author: PerlFAQ Server
Date: Apr 29, 2008 06: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.12: Where can I get perl-mode for emacs?

Since Emacs version 19 patchlevel 22 or so, there have been both a
perl-mode.el and support for the Perl debugger built in. These should
come with the standard Emacs 19 distribution.

In the Perl source directory, you'll find a directory called "emacs",
which contains a cperl-mode that color-codes keywords, provides
context-sensitive help, and other nifty things.

Note that the perl-mode of emacs will have fits with "main'foo" (single
quote), and mess up the indentation and highlighting. You are probably
using "main::foo" in new Perl code anyway, so this shouldn't be an
issue.

--------------------------------------------------------------------
Show full article (1.64Kb)
7 Comments
  How do I follow links stored in an array?         


Author: BirgitteRand
Date: Apr 29, 2008 03:55

I don't know how to follow links in an array (@links) at the bottom of
this script. Can anyone help me?

/Birgitte

#!/usr/bin/perl

use strict;
use WWW::Mechanize;
use LWP::Simple;
use HTML::TokeParser;
use XML::RSS;

# Create the RSS object.
my $rss = XML::RSS->new( version => '2.0' );

# Prep the RSS.
$rss->channel(

title => "JP",

link => "http://jp.dk/seneste",

description => "JP");

my $starting_url = 'http://jp.dk/seneste/';
my $output_dir = "c:/temp/jp";
Show full article (1.75Kb)
3 Comments
  Global symbol "%%Properties" requires explicit package name         


Author: mike
Date: Apr 29, 2008 01:55

Hi,

I have declared my %%Properties but I get the following when I execute:

Global symbol "%%Properties" requires explicit package name at test.pl
line 62.
Global symbol "%%Properties" requires explicit package name at test.pl
line 67.
Global symbol "%%Properties" requires explicit package name at test.pl
line 69.
Global symbol "%%Properties" requires explicit package name at test.pl
line 71.
Global symbol "%%Properties" requires explicit package name at test.pl
line 72.
Global symbol "%%Properties" requires explicit package name at test.pl
line 73.

I have noted the lines in the code below.

Do I have to make some declaration within the sub?

cheers,

//mike
Show full article (3.25Kb)
3 Comments
  FAQ 3.4 How do I find which modules are installed on my system?         


Author: PerlFAQ Server
Date: Apr 29, 2008 00: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.4: How do I find which modules are installed on my system?

You can use the ExtUtils::Installed module to show all installed
distributions, although it can take awhile to do its magic. The standard
library which comes with Perl just shows up as "Perl" (although you can
get those with Module::CoreList).

use ExtUtils::Installed;

my $inst = ExtUtils::Installed->new();
my @modules = $inst->modules();

If you want a list of all of the Perl module filenames, you can use
File::Find::Rule.

use File::Find::Rule;

my @files = File::Find::Rule->file()->name( '*.pm' )->in( @INC );
Show full article (2.48Kb)
no comments