Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
School has a stigma for being no fun and boring...

Pubs as well. Pubs are mostly about beer, and beer is known to induce bellies and (to) further dumbness, contrary to wine. Wine drinkers are witty and sometimes smoke pipe; but then Irish Whiskey drinkers also do, and some of the folks who sold their souls on rare Scotch. Those are smart, have a rough, deep voice and know some citation for every moment. In Ireland they mostly spoke about women, cattle and the dole, though... but times have been changing since.

See, school has its stigma, and so has perl: write-only, ugly, not maintainable and so on... who cares? I had fun at school. I've been beaten by teachers and comrades, but nonetheless. I've got hints at school, but most of what I learned at that time I've learned outside. Biggest difference to PerlMonks is, I've been at school forcibly, but The Monastery I attend to my own liking. I've thought about proposing "Perl University" or "Perl High School", but that's too pretentious. A lowly, humble school which doesn't care about reputation (heh! XP anyone? :-) and which recruits apprentices and teachers out of free will - a school like it should be, I'd say - but Dojo is a fine alternative.

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

In reply to Re^3: Were it not a monastery, my favourite metaphor for PerlMonks would have been: by shmem
in thread Were it not a monastery, my favourite metaphor for PerlMonks would have been: by blazar

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?
    [shmem]: ..the result from the pattern match
    [Lady_Aleena]: tobyink, I did after I failed to get the BLOCK to work. I can't seem to get my brain around grep BLOCK, though I'm okay with grep EXPR.
    [shmem]: so in the second example grep returns all true elements of the list passed
    [Lady_Aleena]: Okay, so grep BLOCK is not like map BLOCK where something might need to be returned at the end.
    [tobyink]: grep { $_ =~ /.*$in.*/; } @my_modules should work just fine. The problem is that you were adding on ;$_ at the end of the block. Why were you doing that?
    [Lady_Aleena]: tobyink, I was thinking map.
    [tobyink]: Something does need to be returned at the end not $_ though. You need to return (something that will be evaluated as) a boolean.
    [Lady_Aleena]: Here is a longish map I did in the same script. my @my_modules = map { my $file = $_; $file =~ s/$module_director y(.+)\.pm/$1/; $file =~ s/\//::/g; $file; } @files;
    [Lady_Aleena]: I spent half an hour trying to figure out why map was rewriting @files.
    [tobyink]: If you like map you can do map { ($_ =~ /.*$in.*/) ? $_ : () } @my_modules and it will work just the same. grep is neater though.

    How do I use this? | Other CB clients
    Other Users?
    Others perusing the Monastery: (9)
    As of 2017-05-27 07:44 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?