|
|
| more useful options | |
| PerlMonks |
Re^2: perl script to print just directory namesby marto (Chancellor) |
| on Dec 07, 2012 at 11:47 UTC ( #1007717=note: print w/ replies, xml ) | Need Help?? |
|
"but can please someone show me how to store these basenames in some sort of array so that i can use them later part in the code." Consider reading and understanding the code you've posted, you already do this for a different array/value:
So rather than print the value of basename($file) to screen push the value of basename($file) into @dir_names.Read push, http://learn.perl.org. Update: slight clarification.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||