Re: .bat to .pl

2005-09-03 Thread Rick Nakroshis
At 05:14 PM 9/3/2005, you wrote: Not exactly. He asked for pancakes, and you gave him French Toast. Both breakfast items, but not necessarily identical. He wanted to convert it into a Perl script, not necessarily just invoke it through a Perl script. To be more precise, no, there is no tr

Win32 Unicode => ASCII ?

2005-06-05 Thread Rick Nakroshis
After several years of churning through massive amounts of ASCII with Perl, I've ran into a stone wall when I tried to parse a exported text file from System Information on my Win XP box. Evidently it defaults to Unicode, which I've cheerfully ignored the last few years. I'm using AS v5.8.3,

Re: getting directory size

2003-03-06 Thread Rick Nakroshis
"Arms, Mike" wrote: > > use File::Find; > find( sub { $s += (stat)[7], $n++ unless -d }, @ARGV ); > print "$n files totaling $s bytes\n"; > > To answer Eric's question, I'm pretty sure you'll have to recurse > through all subdirs of a particular directory adding up the > size of all files.