I used the below perl code to check the change in file size :
1>use Win32::ChangeNotify ;
2>print " \n Enter a file path ";
3>$pt = <STDIN>;
5>$notify = Win32::ChangeNotify->new($pt, true ,"SIZE");
6>unless ($notify->wait( '1000' ))
8> print "Nothing Changed";
12>print 'Something changed';
after executing the above code (saved in fl1.pl) it asks for the path name (the path where the file is actually getting copied)including the file name .
But after giving the file path (e.g F:\test1\ee.avi )
It throws error in command console "Can't call method "wait" on an undefined value at fl1.pl line 6, <STDIN> line 1."
Could any one please help me how to modify this code.. or whats wrong with this.. so that it can monitor(periodicaly) .. the change in file size which is ( ee.avi sized 1.9 gb )getting downloaded .
Advance thanks for any suggestions on this....