Re: Returning specific data from a webpage?



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.
.



Relevant Pages

  • Re: Top Turds of comp.lang.perl.misc (2007)
    ... As a struggling Perl newbie, I derive little encouragement to pursue my ... different programming path while I'm still embryonic. ... Perl isn't offered in the BSc/CS curriculum? ... : offensa. ...
    (comp.lang.perl.misc)
  • Re: attacks: detection and respond
    ... All these, except perl, have a reasonable size. ... the main problem with IDS systems is that attacks ... documentation provided in the operating system man pages. ... users can decide if they want or not to install it. ...
    (comp.unix.bsd.openbsd.misc)
  • Re: Perl projects for beginners
    ... I suggest a newbie should flag himself as such and I am a completely ... converting it to perl version of it worked for me. ... Subject: Perl projects for beginners ... knowledge involved in Instructional design is a Phd in and of its self. ...
    (perl.beginners)
  • Re: 70 yr old needs help - reactivating XP
    ... bottom of your computer. ... operating system and you only use this when installing XP. ... The information in this mail/post is supplied "as is". ... sector on the hard disk but I didn't know how to get to it. ...
    (microsoft.public.windowsxp.general)
  • Re: New Copy Protection Methods?
    ... used to install the operating system and other software on a number of ... piracy are more visible on the bottom line of a company whose market ... I live in a state where the bottom has ...
    (comp.sys.apple2)