On 01/14/2018, at 15:31, Sam Hathaway <[email protected] 
<mailto:[email protected]>> wrote:
> Try replacing the contents of your “Randomize” text filter with:
> #!/usr/bin/env perl
> use List::Util 'shuffle';
> print shuffle(<STDIN>);


Hey Vlad,

I'm with Sam, although I'd write it slightly differently.

#!/usr/bin/env perl -sw
use List::Util 'shuffle';
print shuffle <>;

The main thing here is to turn on the strict and warnings switches, although 
I've also abbreviated STDIN and used a less formal call to shuffle().

--
Take Care,
Chris


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to