comp.lang.perl.misc
  Home FAQ Contact Sign in
comp.lang.perl.misc only
 
Advanced search
January 2008
motuwethfrsasuw
 123456 1
78910111213 2
14151617181920 3
21222324252627 4
28293031    5
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
  WWW::Mechanize : Is immediate caching of images possible?         


Author: hikari.no.hohenheim
Date: Jan 4, 2008 14:12

Traditionally when using WWW::Mechanize to dl images I first fetch the
root page:
my $mech = WWW::Mechanize->new();
$mech->get($url);

then proceed to find all images and 'get' them one by one: (forgive
the crude code)

my @links = $mech->find_all_images();
foreach my $link (@links){
my $imageurl = $link->url_abs();
$imageurl =~ m/([^\/]+)$/;
$mech->get($imageurl, ':content_file' => $1);
}

My current problem with this is that I'm trying to dl an image
generated with information from the session of the original
get($url). It's not a static *.jpg or something simple it's a black
box that displays an image relevant to the session. Meaning, when I
fetch the image (http://www.domain.com/image/ which is embedded in the
page) as shown above, it's a new request and I get a completely random
image.
Show full article (1.52Kb)
8 Comments
  FAQ 7.13 What's a closure?         


Author: PerlFAQ Server
Date: Jan 4, 2008 12:03

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

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

7.13: What's a closure?

Closures are documented in perlref.

*Closure* is a computer science term with a precise but hard-to-explain
meaning. Usually, closures are implemented in Perl as anonymous
subroutines with lasting references to lexical variables outside their
own scopes. These lexicals magically refer to the variables that were
around when the subroutine was defined (deep binding).
Show full article (4.18Kb)
no comments
  %%%%%%%%%% A Powerful, Safe and Economical Alternative to VIAGRA %%%%%%%%%%         


Author: romabond05
Date: Jan 4, 2008 11:30

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A Powerful, Safe and Economical Alternative to VIAGRA
>>> Naturally improves Erectile Dysfunction increasing your Sex Drive, Endurance,and Pleasure.

* Creates Firmer Harder Erections.
* Increases SEMINAL VOLUME & SPERM COUNT Naturally with NO SIDE
EFFECTS.
* Creates Heightened Desire, Sensitivity and Pleasure.
* Sub-lingual tablets are dissolved under the tongue offering
complete and rapid absorption.

.::>> 100%% Full MONEY BACK guarantee if not completely satisfied with
results.

For More Details >>> http://lovetools.cq.bz/

__________________________________________________________________________________________________

Learn Why ProVIGRAX is Better than Viagra >>> http://proviagrax.blogspot.com/
no comments
  http://perldoc.perl.org/bigint.html#EXAMPLES Failing on Cygwin         


Author: Paddy3118
Date: Jan 4, 2008 10:11

I just cut-n-pasted the Bigint examples into a cygwin window,
expecting them all to pass.

The result was:
Show full article (3.39Kb)
no comments
  Print a perl array to html textarea ...         


Author: Moti
Date: Jan 4, 2008 06:16

Hi Guys,
After I got my indigoperl to work I want to build an application that
get data from the html textarea parse it and then return it to the
same text area (deleting the original text).
My parser returns a perl array (@output_array) which I want to print
to the html text area.
Where can I find an example on how to perfrom this ?
Thanks in advance, Moti.
7 Comments
  FAQ 7.11 How do I create a class?         


Author: PerlFAQ Server
Date: Jan 4, 2008 06:03

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

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

7.11: How do I create a class?

See perltoot for an introduction to classes and objects, as well as
perlobj and perlbot.

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

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
  Forcefully release release to OS         


Author: Nishant
Date: Jan 4, 2008 05:14

Hi ,
In my software, perl is using memory that it is not releasing and the
size of the memory that it has allocated is 100MB.
Is there any API with which I can forcefully do garbage collection so
that perl is forced to release memory to OS ?

Regards
Nishant
1 Comment
  Posting Guidelines for comp.lang.perl.misc ($Revision: 1.8 $)         


Author: tadmc
Date: Jan 4, 2008 00:13

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 7.7 Why do Perl operators have different precedence than C operators?         


Author: PerlFAQ Server
Date: Jan 4, 2008 00:03

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

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

7.7: Why do Perl operators have different precedence than C operators?

Actually, they don't. All C operators that Perl copies have the same
precedence in Perl as they do in C. The problem is with operators that C
doesn't have, especially functions that give a list context to
everything on their right, eg. print, chmod, exec, and so on. Such
functions are called "list operators" and appear as such in the
precedence table in perlop.

A common mistake is to write:

unlink $file || die "snafu";

This gets interpreted as:

unlink ($file || die "snafu");

To avoid this problem, either put in extra parentheses or use the super
low precedence "or" operator:
Show full article (2.45Kb)
no comments