automagic that enables a little code to do a lot I find challenging to learn

2011-07-22 Thread goldtech
Hi, What i find challenging in perl is the automagic that enables a little code to do a lot. I was looking at a book Data Munging with Perl by David Cross. I've used perl in the past but I forget most of it after a while and then relearn it when I need to use it again...In any event (I wish I

testing for a file type

2007-12-18 Thread goldtech
Hi, If I have: ... foreach (@ARGV) { print do something only to .mdb files; } I could use File::Basename's fileparse and test for the file extension and put a big if statement around or in the foreach loop. So if a user puts a non .mdb file argument on the cmd line it won't process and