Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Don't forget to look at the code after the line number in the message, too. Compare:
$ cat -n 1 use strict; 2 use warnings; 3 4 our $foo; 5 6 if ($^O eq "23niWSM") { 7 print "bugaboo\n"; 8 } 9 elsif ($foo eq "bar") { 10 print "foobar\n"; 11 } $ perl Use of uninitialized value in string eq at line 6. $ cat -n 1 use strict; 2 use warnings; 3 4 our $foo; 5 6 if ($^O eq "23niWSM") { 7 print "bugaboo\n"; 8 } 9 if ($foo eq "bar") { 10 print "foobar\n"; 11 } $ perl Use of uninitialized value in string eq at line 9. $ diff -u --- 2004-07-20 15:00:49.412472000 -0700 +++ 2004-07-20 15:02:28.875492800 -0700 @@ -6,6 +6,6 @@ if ($^O eq "23niWSM") { print "bugaboo\n"; } -if ($foo eq "bar") { +elsif ($foo eq "bar") { print "foobar\n"; }

In reply to Re: brian's Guide to Solving Any Perl Problem by ysth
in thread brian's Guide to Solving Any Perl Problem by brian_d_foy

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    [Discipulus]: so my 'less' usage sounded not so correct? 'fewer' was more appropriate? i take a note too
    Discipulus $ENV{PAGER}='fewer '
    [Corion]: Discipulus: Hahahaa! ;)
    [Corion]: This would be a great April fools joke, since it certainly makes sense to show fewer pages on screen :)
    [marioroy]: greetings all
    [Corion]: Hi marioroy!
    [Corion]: I'm slowly thinking that IP::CloudHoster is a bad name. The module started out as a module to identify whether an IP address comes from a cloud hoster like AWS (or Google GCE, or Linode), but now I also added ...
    [Corion]: ... a way to verify that an IP is the GoogleBot crawler. Maybe I should rename it to IP::HostInformatio n or IP::ServiceInforma tion or something like that...
    [Corion]: The main idea is to use this module in a web log analyzer to highlight (real) users and flag for example hammering from AWS or GoogleBot (or UAs claiming to be GoogleBot)

    How do I use this? | Other CB clients
    Other Users?
    Others having an uproarious good time at the Monastery: (12)
    As of 2018-01-23 09:18 GMT
    Find Nodes?
      Voting Booth?
      How did you see in the new year?

      Results (242 votes). Check out past polls.