Skip to content

Instantly share code, notes, and snippets.

Created May 23, 2013
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;

This comment has been minimized.

Copy link
Owner Author

@kyanny 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