From: Anton 'tony' Bangratz Date: 2006-06-14T05:18:12+09:00 Subject: Re: RUBY keeps complaining about my "end" statement --------------enig10C53C31A19B6DF0BFBCC86E Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Peter Bailey wrote: > When I try and run a script that has this as part of it, RUBY keeps=20 > complaining about my "end" statement. Can someone please help me with=20 > this? What's its problem with it? >=20 > Thanks. >=20 >=20 >=20 > ps2kfiles =3D=20 > Dir.glob("{aacmc7,acm059,acm061,acmc59,acmt59,adc064,adm064,cbncc7, > cgmpr,cpslit,cpsmco,edc131,edt131,eeomc7,emgc15,hcc201,hcci01,hct201,hc= ti01, > hla020,hlai20,hlb020,hlbi20,hltc20,hlti20,ierc78,itc101,jsc047,lrc013,l= rfl21, > lrnm21,lrrc21,lrrc22,lrrc24,lrrc37,lrrc49,lrrc74,lrrmc6,lrrt37,mopc68,m= opd68, > mopec8,mopt68,pgc117,pslc45,psvc45,rt013,rtc129,uln007}*.pdf") > ps2kfiles.each do |ps2kfile| > ftp =3D Net::FTP.open('quark.bna.com') > ftp.login('xxx','xxx') > ftp.chdir('/home/xxx') > #ftp.chdir('/prod/data/pdf/index-wip') > ftp.putbinaryfile(#{ps2kfile}) ITYM: ftp.putbinaryfile(ps2kfile) > end >=20 Explanation: you do not need interpolation here, the variable 'ps2kfile' does hold the value you want already. Oh, and you might want to change your password(s), if they are real. HTH, t. --=20 Anton Bangratz - Key ID 363474D1 - http://tony.twincode.net/ fortune(6): Any given program, when running, is obsolete. --------------enig10C53C31A19B6DF0BFBCC86E 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.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBRI8dZQgZMsE2NHTRAQLMawf/Uh2Maq0bd3I3SssTY84d53G04r1uUXZy lTPaj4AmD5NaiwRTb8Fa7C06RtP6KTsZD0ILOmzD57PPIEJSFjVJnxhhUKV6qKsS GiFPGfjPcih9ZXF60HsIZigueM3tE1pbsUYf92c/nAkNBfBXjnhes5ghb/pJF4iw ritKVb9Lmd4t3LX0mkQa+mfwnO6DyZu7Mo0YRoNiICOHXPL/hFvHvNHxXv3ACwAk Yv0kKrdQyqZyoKI7W7PVgZXhwKcSgv7inLkeKESikAZ0pPyYeaNmlZLNm0TZYspz osp0a1cZymctToXMbJhD3Z2hBTcwGD3dPG2NEphJPmzQQcVjW2bfeA== =jjq+ -----END PGP SIGNATURE----- --------------enig10C53C31A19B6DF0BFBCC86E--