From: Dana Merrick Date: 2008-06-14T00:21:14+09:00 Subject: Re: looping --------------enig0E5CF8AF2D5BDA4EE243C5E1 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Tim Wolak wrote: > Can someone explain why my code is stopping after looking at the first > file? There are at least 20 files in this directory and it stops after= > checking just one. >=20 > if(t =3D=3D procFile && list =3D~ /FutBal\d{8}.txt/) > Dir.chdir("/tmp") > ftp.gettextfile(list, localfile =3D File.basename(list)) > exit Perhaps you didn't mean to call "exit?" -Dana --=20 Dana Merrick - System Administrator Integrated Computer Solutions, Inc. 54B Middlesex Tpke, Bedford, MA 01730 617.621.0060 x112 - http://www.ics.com --------------enig0E5CF8AF2D5BDA4EE243C5E1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iEYEARECAAYFAkhSkIwACgkQ7b+8UB5G/wPXgACfRguw8TuYlrDRm9mfKlveH+Qm OPQAn3CQbNrYka7oI+ziyBApcsaFXE+6 =QofL -----END PGP SIGNATURE----- --------------enig0E5CF8AF2D5BDA4EE243C5E1--