The current version of POE::Component::DirWatch by Justin Hunter doesn't use spawn but new instead. There was an older version by Eric Cholet that used spawn, but that was backpanned in 2008; however, if you look at the POE Components List at http://poe.perl.org/, the older version is the one that is listed. Ignore that and use the CPAN version.