Just a bit more fodder ... I changed sub host_mask to print it's value if it was already set and as it returns it. And instead of referencing the package var directly in host_path -- am going through sub-host_mask:
sub host_mask (;$) { my $p = shift; if ($pkg_host_mask) { P "(hostmask pre-set to %s)", $pkg_host_mask; return $pkg_host_mask; } $pkg_host_mask = $_[0] if @_; $pkg_host_mask }
Now the output seems to even more clearly show weirdness:
>Parseable::new, pckg= 'main{}' >URL::Fetchable::new >URL::Cacheable::new >URL::new, pkg='main' (SET) storage_path="cache" storage_path=cache <URL::new (hostmask pre-set to (?-ims:([a-zA-Z][-a-zA-Z0-9]*\.[a-zA-Z]+)$)) (hostmask pre-set to (?-ims:([a-zA-Z][-a-zA-Z0-9]*\.[a-zA-Z]+)$)) host_mask="(?-ims:([a-z...", charset="UTF-8", (hostmask pre-set to (?-ims:([a-zA-Z][-a-zA-Z0-9]*\.[a-zA-Z]+)$)) (hostmask pre-set to (?-ims:([a-zA-Z][-a-zA-Z0-9]*\.[a-zA-Z]+)$)) $p->host_mask=(?-ims:([a-zA-Z][-a-zA-Z0-9]*\.[a-zA-Z]+)$), host= (hostmask pre-set to (?-ims:([a-zA-Z][-a-zA-Z0-9]*\.[a-zA-Z]+)$)) Use of uninitialized value $host_mask in regexp compilation at ./crawl +.pl line 400. at ./crawl.pl line 400. URL::Cacheable::host_path('main=HASH(0x168f338)') called at ./ +crawl.pl line 409 ...
I mean how much more 'confidence' do I need to know host_mask really is set!!... yet still... the regexp compilation tosses it's cookies....!#$%~@#!*)&()+!
Oops, sorry, my fingers slipped must have slipped..

In reply to Re^3: strange prob--print RE& then use-says not set?? by perl-diddler
in thread strange prob--print RE& then use-says not set?? by perl-diddler

Title:
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, details, 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, summary, 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.