Skip to content

Instantly share code, notes, and snippets.

@kyanny kyanny/gistub152.pl
Created May 23, 2013

Embed
What would you like to do?
#!/usr/bin/env perl
use strict;
use warnings;
use List::Util qw(shuffle);
my @name_list = qw(okkun kitak keoken gussan);
print join ', ', shuffle @name_list;
@kyanny

This comment has been minimized.

Copy link
Owner Author

kyanny commented May 23, 2013

おれならこう書く

  • use PACKAGE qw(インポートしたい関数名)
  • qw( ... ) 配列リテラル
  • シャッフル結果を一時変数に入れる必要は無い
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.