Yes I checked that thread but that didn't answer the question of clearing print queues. I used Win32::Printer::Enum as it suggested in that thread. I'm new to use Perl in windows and any help would be greatly appreciated.
It seems like using Win32::API in conjunction with the winspool.drv DLL and calling SetJob with a null job will do the trick, but I can't give you the exact code that would accomplish this