Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Perl ranges

by merlin's apprentice (Novice)
on May 06, 2013 at 13:13 UTC ( [id://1032282]=note: print w/replies, xml ) Need Help??


in reply to Re: Perl ranges
in thread Perl ranges

Thanks Mike! Let me try that and get back to you with my findings...

Replies are listed 'Best First'.
Re^3: Perl ranges
by merlin's apprentice (Novice) on May 06, 2013 at 13:30 UTC

    Hi Mike, I tried that this way:

    my $time_string = strftime "%Y-%m-%d", gmtime($mtime); if ($time_string =~ 2013-04-01 && ($1>=01 && $1<=20)) { print "File $name has an mtime of $time_string\n"; $ftp->get($name) or die "get failed ", $ftp->message;

    And it still didn't work for me. You see, what I'd like for it to do is change the day only incrementally from the 1st of the month to the 20th of the month (as in the example above) Is there any way I could do that using your code?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1032282]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-24 07:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found