more useful options | |
PerlMonks |
Re: Schwartzian Transfrom using a subroutineby BrowserUk (Patriarch) |
on Jan 09, 2013 at 11:53 UTC ( [id://1012460]=note: print w/replies, xml ) | Need Help?? |
I am getting the original sorting of the list. Because your sub doesn't return the transformed string; it returns the result of the the last transform. Change that to:
(As an aside; are you aware that for my $word (@output){say $word;} is more easily written as say for @output?) With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|