in reply to implicit sort disables a chained subroutine?

BrowserUk,
Changing it to following generates the desired results - parsing error perhaps?
print sort( uniq( @array ) );
Checking perldoc -f sort, 'sort SUBNAME LIST' is valid syntax but not likely the one you wanted.

Cheers - L~R

Replies are listed 'Best First'.
Re^2: implicit sort disables a chained subroutine?
by BrowserUk (Patriarch) on Jan 13, 2005 at 20:15 UTC
    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.
      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