Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^2: grep with looped tests

by Laurent_R (Abbot)
on Jun 06, 2014 at 20:55 UTC ( #1089107=note: print w/replies, xml ) Need Help??

in reply to Re: grep with looped tests
in thread grep with looped tests

This is a quite nice construct. I had a somewhat similar problem to solve a couple of weeks ago and did not think about such a clever and concise solution. Having said that, the explicit loop I used was probably not less efficient. But I wish I had thought about such a solution as yours.

Rolf, if I may, a brief side question: which option of the debugger are you using for displaying directly last evaluated expression without having to print is explicitly? I mean, when you have this:

DB<100> @x=1..10 => (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
what option do you use to have the second line above printed seemingly automatically? Thanks for your response, and sorry for being off-topic.

Replies are listed 'Best First'.
Re^3: grep with looped tests
by LanX (Chancellor) on Jun 07, 2014 at 15:45 UTC
    Unfortunately there is no option, I patched the code. (after a hint here from pemungkah )

    Actually monkey patched some lines from a config file.

    I can share later if you want, I'm mobile ATM.

    Cheers Rolf

    (addicted to the Perl Programming Language)

      Thanks for your answer, Rolf. I am not sure I want to patch Perl, I don't want to break everything, unless it is a simple thing that can be easily undone.
        Adding some lines to .perldb will hardly "patch Perl"! :)

        I gave you a link, just try it out.


        Cheers Rolf

        (addicted to the Perl Programming Language)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1089107]
[LanX]: quick survey ... Module::Build, ExtUtils:: ModuleMaker or Module::Starter ?
[Your Mother]: Module::Install
[Your Mother]: :P
[LanX]: Moma knows best! ;-)
[Your Mother]: I am quite aware that Module::Build is MUCH more in favor with many monks but I had trouble with it every time I tried to use it and trouble with CPAN stuff that used it too.
[Your Mother]: Take my advice with a grain of salt. I haven't done a new CPAN release in years at this point.
[LanX]: I want to author a new module for CPAN w/o complicated build structure
[LanX]: ther is also Dist::Zilla :-/

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2017-08-18 17:37 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (306 votes). Check out past polls.