| home | help | back | first | fref | pref | prev | next | nref | lref | last | post |
Message-ID: <001a01c18a48$8ff597c0$0100a8c0@mit.edu> From: "Bryant C. Vernon" <bcvernon@MIT.EDU> To: <winpartners@mit.edu> Date: Fri, 21 Dec 2001 10:51:30 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0015_01C18A0D.72E73ED0" This is a multi-part message in MIME format. ------=_NextPart_000_0015_01C18A0D.72E73ED0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi All, I realized that I forgot two things in the code while I was copying it = from one PC to another. 1. if ((-M "mydirectory\\$allfiles[$]" < $days) & ($allfiles[$n] ne = "\.")) is wrong--it should be: 1a.if ((-M "mydirectory\\$allfiles[$n]" < $days) & ($allfiles[$n] ne = "\.")) I forgot the n :) 2. print "$allfiles has been modified within the past $days.\n"; is = wrong--it should be: 2a. print "$allfiles[$n] has been modified within the past $days = days.\n"; I forgot the [$n] and the word days after $days :) Enjoy! Bryant ------=_NextPart_000_0015_01C18A0D.72E73ED0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Hi All,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I realized that I forgot two things in = the code=20 while I was copying it from one PC to another.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>1. if ((-M "mydirectory\\$allfiles[$]" = < $days)=20 & ($allfiles[$n] ne "\.")) is wrong--it should be:</FONT></DIV> <DIV><FONT face=3DArial size=3D2>1a.if ((-M "mydirectory\\$allfiles[$n]" = < $days)=20 & ($allfiles[$n] ne "\."))</FONT></DIV> <DIV><FONT face=3DArial size=3D2>I forgot the n :)</FONT></DIV> <DIV><FONT face=3DArial size=3D2>2. print "$allfiles has been modified = within the=20 past $days.\n"; is wrong--it should be:</FONT></DIV> <DIV><FONT face=3DArial size=3D2>2a. print "$allfiles[$n] has been = modified within=20 the past $days days.\n";</FONT></DIV> <DIV><FONT face=3DArial size=3D2>I forgot the [$n] and the word = days after=20 $days :)</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Enjoy!</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Bryant</FONT></DIV></BODY></HTML> ------=_NextPart_000_0015_01C18A0D.72E73ED0--
| home | help | back | first | fref | pref | prev | next | nref | lref | last | post |