in reply to Not looping... Am I a moron?
And I add back in your other calls, and add stub code, and it still works fine for me. ??#!/usr/bin/perl -w get_section('E0209.dat','F0210.dat','H0211.dat'); sub get_section { $docdir = "./"; print join ':', @_ , "\n"; for (@_) { print ; /\.dat/ && do { $file = join '/', ($docdir, $_); $pubdate = substr ($_, 1, 4); print "$file \:\: $pubdate\n" ; } ; } }
-- bliz
|
|---|