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.
Perl で構成ファイルから読み取るときに、行が無効で、有効な行の配列に追加する必要がない場合があります。ここでは for ループを使用しているため、無効な行でも undef エントリが作成されます。後でそれらをすべて削除するにはどうすればよいですか?
ありがとう!
@array = grep defined, @array;