Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Deprecated annoyances

by tilly (Archbishop)
on Jul 11, 2005 at 15:18 UTC ( #473972=perlmeditation: print w/replies, xml ) Need Help??

Every so often I notice that someone has managed to take care of a significant annoyance that I had with some module. For instance this morning I noticed that you can now use Exporter 'import'; and not mess with @ISA. (Which is how I think it should have been done in the first place.) One annoyance gone (though I predict that the old meme won't die anytime soon).

A couple of months ago I noticed that Module::Build::Compat supports a 'traditional' target, solving most complaints that I had about using the 'passthrough' one.

Both of these are great, but of course they do no good until I noticed that they have been fixed.

So what annoyances have the rest of you (probably belatedly) recently noticed that there are now solutions for?

Replies are listed 'Best First'.
Re: Deprecated annoyances
by Old_Gray_Bear (Bishop) on Jul 11, 2005 at 16:15 UTC
    A few months back I started working at a shop that is using a version of Perl more recent than 5.005. (long story; short version: Legacy Code in a Banking System.) Last week I found out that I can now do lexical file-handles and I can quit mucking about with the Symbol module. Small thing, perhaps, but it makes me happy....

    I Go Back to Sleep, Now.


Re: Deprecated annoyances
by perrin (Chancellor) on Jul 11, 2005 at 16:47 UTC
    Catalyst now supports passing args in $c->forward(). The upcoming version of Data::FormValidator has an easier way to check if the validation passed or not.
Re: Deprecated annoyances
by samtregar (Abbot) on Jul 11, 2005 at 21:25 UTC
    I recently realized that you could use $DB::single to stop the debugger at a particular line. It's so much easier than trying to feed the debugger 'b' command!


Re: Deprecated annoyances
by adrianh (Chancellor) on Jul 11, 2005 at 23:22 UTC
    So what annoyances have the rest of you (probably belatedly) recently noticed that there are now solutions for?

    h2xs is not as bad as it used to be.

Re: Deprecated annoyances
by tlm (Prior) on Jul 15, 2005 at 20:12 UTC

    ref now returns an empty string, instead of undef, when its argument is not a reference. Hence expressions like

    ref $x eq 'CODE'
    don't produce annoying warnings in such cases.

    There's a little coding guideline lurking in there somewhere... Something like "never return undef when the empty string would be just as good."

    the lowliest monk

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://473972]
Approved by atcroft
Front-paged by Old_Gray_Bear
[Corion]: (we're at 3.24.0 , so maybe the feature appears this year even)
[erix]: Ah, they're reverse-engineerin g postgresql - good idea
[erix]: (believe me, the postgres docs are a whole lot more readable than the SQL-standard documents (also a lot cheaper...)
[Corion]: erix: Yes - I see no shame in adopting whatever works elsewhere ;) Especially if it has proven solid already, like Pg has :)
[Corion]: Maybe I shouldn't dig into extracting the Pg query engine from its source code then and just wait until SQLite gives me the same features :-)) But I'd really like a Pg-compatible query parser for Perl too ;)))

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2018-07-23 11:23 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (464 votes). Check out past polls.