in reply to Re: Re: Net::FTP
in thread Net::FTP's get() does not handle wildcards
if (s/(\w+shar\d\d\d\d\d\d\.\d\d\d\d)/$1/)
I would suggest:
What you are doing with s/// is substituting your regular expression for $1. The parenthesis around the expression delimit(?) $1. So it would appear that you are substituting the regular expression for itself. Then of course setting your variable $file to be equal to $1. Note the m/// in the second if statement. Also, your regular expresion could match on more than one file that fit that pattern if several files fit that scheme.if (m/(\w+shar\d\d\d\d\d\d\.\d\d\d\d)/)
|
|---|