It certainly must be Friday. I have this working now. Sorry.
kathyjjja <[EMAIL PROTECTED]> wrote:Hello everyone,
I am trying to add the date to a file name. I finally got rename to work, but
now I am having problems with indexing the date string. Index works fine on any
other string, but for some reason it is not seeing the characters in date. Here
is the code:
my $where
my $dateTime = localtime;
print "dateTime = $dateTime\n";
# dateTime looks like this: Fri Nov 11 14:59:49 2005
$where= index($dateTime, "N");
print "where = $where\n";
index() cannot find anything in the $dateTime string. I am thinking that this
data is actually stored in another format and when you ask for it to be
printed, it formats it nicely for you automatically. If that is true, how can I
get a date as a string that I can manipulate?
Thanks,
Kathy
---------------------------------
Yahoo! FareChase - Search multiple travel sites in one click.
---------------------------------
Yahoo! FareChase - Search multiple travel sites in one click.