I am trying to do simple split for the output which i get when i do "ls" on a Linux box. i am pushing this to a file Dirlist.txt and doing this code
use strict;
undef $/;
open (LST,"Dirlist.txt")||die "$^E ; $!\n";
my $data = ;
#print "$data";
my
@array = split(/\b/, $data);
print "$_\n" for (
@array);
---My Output-------
abd.txt 123.exe cdc.ipl
asd.txt 234.exe pmd.ipl
.....
...
Some one please hit my head.
Thanks