Hi All,
I am new to perl. I wrote this simple script but on running it ./xxx it does not bring out any output on the stdout.
Please what's wrong?
#!/usr/bin/perl
$shadow_file="local/scripts/test_shadow";
open(SHADOW, $shadow_file);
@array_data=<SHADOW>;
print @array_data;
close (SHADOW);
foreach $column (@array_data)
{chop ($column);
($column1, $column2)=split(/:/, $column);
print "$column1, $column2";
}
Regards,
Chike.
I am new to perl. I wrote this simple script but on running it ./xxx it does not bring out any output on the stdout.
Please what's wrong?
#!/usr/bin/perl
$shadow_file="local/scripts/test_shadow";
open(SHADOW, $shadow_file);
@array_data=<SHADOW>;
print @array_data;
close (SHADOW);
foreach $column (@array_data)
{chop ($column);
($column1, $column2)=split(/:/, $column);
print "$column1, $column2";
}
Regards,
Chike.