Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

Ecclesiastes 12:1-7 (KJV)

Remember now thy Creator in the days of thy youth, while the evil days come not, nor the years draw nigh, when thou shalt say, I have no pleasure in them; While the sun, or the light, or the moon, or the stars, be not darkened, nor the clouds return after the rain: In the day when the keepers of the house shall tremble, and the strong men shall bow themselves, and the grinders cease because they are few, and those that look out of the windows be darkened, And the doors shall be shut in the streets, when the sound of the grinding is low, and he shall rise up at the voice of the bird, and all the daughters of musick shall be brought low; Also when they shall be afraid of that which is high, and fears shall be in the way, and the almond tree shall flourish, and the grasshopper shall be a burden, and desire shall fail: because man goeth to his long home, and the mourners go about the streets: or ever the silver cord be loosed, or the golden bowl be broken, or the pitcher be broken at the fountain, or the wheel broken at the cistern. Then shall the dust return to the earth as it was: and the spirit shall return unto God who gave it.
$self = bless { youth => { days => [caller] } }; while not $days->{'evil'}->come || $years->draw_nigh( sub { print $self "No pleasure in $_" }; while ( $sun or $light or $moon or $stars ) !~ /darkened/; !or rain(), return( @clouds ); for $day ( <$days> ) { $house->keepers->tremble and $_->bow for grep $_->strong, @men and $_->cease for @grinders if @grinders <= $few and $_->darken for @those_that_look_out_of_windows and $_->shut for @{$streets{'doors'}} and $grinding->sound->{'volume'}-- and $_->rise_up if $bird->voice and $_-- for @{ $music->{'daughters'} } and $_->fear( grep $_->high, @things ) and @way{ @fears }=() and $almond_tree->flourish and @Grasshopper::ISA = ( Burden:: ) and $_->{'desire'}->fail and $man goto $ENV{'HOME'}+0.0 and $_->go_about( @streets ) for @mourners or $silver_cord->loosed or $golden_bowl->broken or $pitcher->broken( @fountain ) or $wheel->broken( @well ) and do { sub { return( $dust => $earth ) } # as it was && return $spirit # to caller ($God) }; }

In reply to Or ever the silver cord be loosed by jdporter

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, 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?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    [choroba]: Algorithm::Loops
    [Corion]: choroba: I'm using that to generate the permutations, but I don't know how the user can pass the intended values to my function in a sane way
    [Corion]: I have a prototype that permutes the get_parameters, but the values used for the get parameters should be different from the values used for the headers and potentially for parts of the URL
    [Corion]: But yes, in general, my approach will be "split the URL into another set of parameters, generate an array of allowed values for each parameter and then NestedLoops() over the set"
    [choroba]: hmm... so you need something like bag from Test::Deep, but not for checking, but for generation
    [Corion]: This has the dual use of easily requesting sequential URLs and also being suitable for testing
    [Corion]: For testing, I want to skip all tests with the same value(s) once one test fails to cut down on the number of failing tests
    [Corion]: choroba: Yes, in a way I
    [Corion]: ... I'm treating the incoming value sets as bags... Maybe I'll just put the burden on the user, at least in the first attempt at a full API. generate( headers => [{ 'Content-Type' => 'text/plain' }, {'Content-Type' => 'text/json' ] ), even ...
    [Corion]: ... if that is cumbersome for the caller to specify. On the other hand, maybe there isn't that big a need for permuting the header values

    How do I use this? | Other CB clients
    Other Users?
    Others examining the Monastery: (5)
    As of 2017-01-17 08:22 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      Do you watch meteor showers?




      Results (152 votes). Check out past polls.