From: Chad Perrin Date: 2011-05-21T10:50:29+09:00 Subject: Re: need help with "module" and variable --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, May 21, 2011 at 05:35:24AM +0900, 7stud -- wrote: > keinlezard wrote in post #999948: > > Le 17/05/2011 23:57, 7stud -- a =E9crit : > >> Don't use global variables--ever. > >> > > > > I understand that ... what I want to know... >=20 > You posted no code in your first post, and you posted no code in your=20 > next post. So no one has any idea what your questions is or what you are= =20 > talking about. Is there something wrong with your mail user agent? I saw code. This is an excerpt from the original message: I have this code in a file > >module DB_parc > tOTo=3D2 > def DB_parc::session() > begin > dbh =3D > DBI.connect(CONF_parc::Db,CONF_parc::User,CONF= _parc::Password); > #backend =3D Backend.new(dbh) > #yield(backend) > # yield :provoque l'execution de la variable > pass=E9e en parametre > yield(dbh) > rescue DBI::Error =3D> e > puts "#{e.errstr}" > ensure > dbh.disconnect if dbh > end > end >end I'm not sure why he has blockquote characters at the beginnings of all those lines of code, but that's definitely code -- and it's not all the code that was in that message, either. --=20 Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] --OXfL5xGRrasGEqWY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAk3XFxcACgkQ9mn/Pj01uKU/gACffHgs55BS/pJSBRkQwTCcWgD3 y5oAoNY2dCQGYc2RzuJ7xTHQtOAK186g =1EVs -----END PGP SIGNATURE----- --OXfL5xGRrasGEqWY--