#!/blah/perl use Config::Crontab; my $ct = new Config::Crontab; $ct->read; my ($r) = $ct->select(-command_re => 'test'); print $r . "\n"; # Config::Crontab::Event=HASH(0 +xhex) print %r . "\n"; # 0 my %x = $ct->select(-command_re => 'test'); print %x . "\n"; # 1/8 my (%y) = $ct->select(-command_re => 'test'); print %y . "\n"; # 1/8
Update:this thread apparently has received a lot of down votes, which I guess is no fault but my own.

My scratchpad was not loading for whatever reason, so this SoPW was used as space to explain the problem. If this seems hard to follow, that's because it probably is - the original question was asked in CB and most of the replies were placed there.

This is why I didn't take too much time explaining the dilemma in post. It was only meant for those on CB that day that felt like helping me out.

In reply to Problem working with Hashes by deMize

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.