Ron Grabowski wrote: > > > with tie. Here's an example of tieing a hash to count ip addrs (you can substitute > > What does that program do ( yes I know it counts IP addresses )? Some > sample input, output maybe... Don't have any. Just call it with an IP address as arg 1 or 'create' as arg 1 and a filename as arg2 (the file would contain IP addresses <one per line> in dotted decimal form). Then with no args, the tied hash will be printed. All IP addrs are in dotted decimal form. I mean were only talking 25 lines of code or so, it shouldn't be that hard to figure out. :) These two calls should give you the idea: perl script.pl 1.2.3.4 perl script.pl (should print out 1.2.3.4) -- ,-/- __ _ _ $Bill Luebkert ICQ=14439852 (_/ / ) // // DBE Collectibles http://www.todbe.com/ / ) /--< o // // Mailto:[EMAIL PROTECTED] http://dbecoll.webjump.com/ -/-' /___/_<_</_</_ http://www.freeyellow.com/members/dbecoll/ _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users