http://www.perlmonks.org?node_id=977337


in reply to Re: Use Mkdir to create dir from list
in thread Use Mkdir to create dir from list

Huh? chomp does NOT return $_! You will need map { chomp; $_ }

$ perl -MDP -E'@_=map{$_."\n"}1..5;DDumper[@_]' [ '1 ', '2 ', '3 ', '4 ', '5 ' ] $ perl -MDP -E'@_=map{$_."\n"}1..5;DDumper[map{chomp}@_]' [ 1, 1, 1, 1, 1 ] $ perl -MDP -E'@_=map{$_."\n"}1..5;DDumper[map{chomp;$_}@_]' [ 1, 2, 3, 4, 5 ]

Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^3: Use Mkdir to create dir from list
by rovf (Priest) on Jun 21, 2012 at 09:22 UTC
    Of course you are right! Silly mistake, thanks for pointing it out. I will update my node.

    -- 
    Ronald Fischer <ynnor@mm.st>