srinivasagh has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: to Extract file type from a folder
by Fletch (Bishop) on Apr 06, 2009 at 11:59 UTC

    The problem's obviously on line 23 of the ample code sample you've helpfully provided showing what you've already written.

    (See How (Not) To Ask A Question.)

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: to Extract file type from a folder
by almut (Canon) on Apr 06, 2009 at 12:26 UTC

    I've heard rumors Win32::ChangeNotify can help you with such things, in that it could notify you when something changed in c:\temp — but AFAIK, you'd then have to figure out what changed, i.e. you'd have to explicitly check for your .dcm file every time you're being notified of a change...