in reply to Re: implicit sort disables a chained subroutine?
in thread implicit sort disables a chained subroutine?

Checking perldoc -f sortsort subname list is valid syntax but not likely what you wanted.

I use it with buil-ins all the time:

print sort split '', 'fred'; d e f r

so I don't see why it shouldn't work with user subs?

It's also the nature of the misfunction that concerns me. It is as if the intervening user sub wasn't there or was simply acting as a pass-thru.

No errors, no warnings, just the entire function of the sub silently bypassed?


Examine what is said, not who speaks.
Silence betokens consent.
Love the truth but pardon error.

Replies are listed 'Best First'.
Re^3: implicit sort disables a chained subroutine?
by Limbic~Region (Chancellor) on Jan 13, 2005 at 20:21 UTC
    BrowserUk,
    It isn't silently being bypassed. Put a print statement in uniq() and see for yourself. As far as why built-ins are working, I hope the other responses answer that.

    Cheers - L~R