Re: Returning specific data from a webpage?
- From: anno4000@xxxxxxxxxxxxxxxxxxxxxxx (Anno Siegel)
- Date: 7 Jul 2005 10:29:36 GMT
A. Sinan Unur <1usa@xxxxxxxxxxxxxxxxxxx> wrote in comp.lang.perl.misc:
> Gunnar Hjalmarsson <noreply@xxxxxxxxx> wrote in
> news:3j3129Fnr3sdU1@xxxxxxxxxxxxxx:
>
> > demolitionz@xxxxxxxxx wrote:
> >> A. Sinan Unur wrote
> >>>
> >>> Those should be
> >>> use strict;
> >>> use warnings;
> >>> Case matters in Perl.
> >>> Please read the posting guidelines for this group.
> >>
> >> Sorry, I was following the guidelines but I used the wrong case in
> >> the actual script itself and so copied and pasted wrong. Newbie
> >> mistake (we were all newbies once, remember?)
> >
> > Now you are lying, don't do that!! If you had used wrong cases in the
> > actual script, the program hadn't compiled, and you hadn't talked
> > about "successfully receiving a response page".
>
> The OP might be on Windows where the case insensitive nature of the
> operating system can play nasty tricks on the unsuspecting individual.
> Indeed:
>
> D:\Home\asu1> cat ttt.pl
> #!/usr/bin/perl
>
> use Strict;
> use Warnings;
Same for Mac (OS X or earlier), at least when run on a case-insensitive
file system.
At first sight it looks pretty harmless, after all Perl finds the
intended module, so all is fine. However, a potential import()
method in the module will *not* be found because Perl looks for
->Warnings::import (in the case of "warnings"), where case matters.
This doesn't lead to an error message either (only if parameters were
given).
So the module *has* been loaded, but then some things the code expects
to be done have *not* been done. The resulting situation can be very
confusing.
Anno
--
If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers.
.
- References:
- Returning specific data from a webpage?
- From: demolitionz
- Re: Returning specific data from a webpage?
- From: demolitionz
- Re: Returning specific data from a webpage?
- From: Gunnar Hjalmarsson
- Re: Returning specific data from a webpage?
- From: A. Sinan Unur
- Returning specific data from a webpage?
- Prev by Date: Re: FAQ 2.17 Where do I send bug reports?
- Next by Date: Redirecting output
- Previous by thread: Re: Returning specific data from a webpage?
- Next by thread: Re: Returning specific data from a webpage?
- Index(es):
Relevant Pages
|
|