Re: Returning specific data from a webpage?



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;

print "$t\n";

D:\Home\asu1> ttt


So, the OP might have indeed used the wrong capitalization and cut and
pasted the code without ever seeing any indication that anything was
wrong, if he is on Windows.

Sinan
--
A. Sinan Unur <1usa@xxxxxxxxxxxxxxxxxxx>
(reverse each component and remove .invalid for email address)

comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
.



Relevant Pages

  • Re: Removing whitespace and quotes from the end of HTML
    ... > I think you are confusing me with someone else. ... > This is my first post. ... Sinan Unur ... comp.lang.perl.misc guidelines on the WWW: ...
    (comp.lang.perl.misc)
  • Re: finding maximum element in an array recursively
    ... followed all the guidelines, so that is a good thing. ... > (according to Xhos) problem. ... It is stupid to find a maximum using ... Sinan Unur ...
    (comp.lang.perl.misc)
  • Re: Matching subsets of two strings
    ... >> Jim Weeb wrote: ... > Unfortunately after plumbing in that code it appears not to work ... Or, as the guidelines suggest, you can post a short, self-contained ... Sinan Unur ...
    (comp.lang.perl.misc)
  • Re: problem with system() and fork
    ... >> May I suggest that when you refer people to the posting guidelines, ... In addition, the guidelines are posted here very regularly, and people ... s/he cannot see a link, it does not take too much effort to type ... Sinan Unur ...
    (comp.lang.perl.misc)
  • Re: Gnome or KDE - why not ask?
    ... but for the newbie particularly somebody coming ... over from M$ Windows. ...  Much of that text already exists in documentation ... Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines ...
    (Fedora)