Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
3 行のテキストをランダム化する CGI スクリプトを作成しようとしています。Web ページを表示するたびに、3 つの行が毎回異なる順序で次々に表示されます。これを行う方法とコードは何ですか?
use List::Util qw( shuffle ); @lines = shuffle(@lines);