|go ahead... be a heretic|
How do i take the first 4 characters of any file name in a specified directory?by Anonymous Monk
|on Sep 17, 2008 at 06:02 UTC||Need Help??|
Anonymous Monk has asked for the
wisdom of the Perl Monks concerning the following question:
How do i take the first 4 characters of any file name in a specified directory?
I have tried this.
@namearr = `ls -l /usr/C`;
foreach $nameline (@namearr)
@name1 = $nameline;
print ("$name1 ");
where C is a directory.