> sub slow_fn { > my $tick = Timer.new(60, { print "..." }); > return slow_fn_imp @_; > } > > Now if I could just get the compiler to not complain about that > unused variable...
Maybe I'm being dense.... Why not just sub slow_fn { Timer.new(1, { print "." }); return slow_fn_imp @_; } or maybe even sub slow_fn { my $tick = 1; Timer.new({$tick++}, { print "." }); return slow_fn_imp @_; } For a slowly slowing timer.... ? Or to my taste, sub slow_fn { Timer.new(60, { print "..." }); return slow_fn_imp @_; } __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com