Hello Ken,
The $FILES[2] is actually the first file in the directory as the first 2 elements of that array are '.' and '..'. I have tested it separately and it works.
When i add a print statement after the $mech->get() function, i do not get any output.
The use of :
use strict; use warnings;does not give any error.
The $old is set by getting the filename of the file that has been downloaded, so it is not the same value.
In reply to Re^2: Downloads in firefox using perl WWW::Mechanize::Firefox
by pawaniitd
in thread Downloads in firefox using perl WWW::Mechanize::Firefox
by pawaniitd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |