-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Dec 5, 2008, at 11:42 AM, Jenda Krynicky wrote:
In Perl 5.10 there is a new operator // that tests the defined()ness so there you could write $title = $title1 // $title2 // $old_title; and it would mean exactly what you said you need. It will set $title to $title1 if defined, otherwise to $title2 if defined and otherwise to $old_title.
Oh sweet, I did not know that... thanks Jenda! Sincerely, James Moser [EMAIL PROTECTED] There are 10 kinds of people in the world. Those who understand binary, and those who do not. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) iEYEARECAAYFAkk5aN4ACgkQBNt7jTp4/nnKegCg0Aikp++9XRKiSHY3dcIDnltw yQwAn38tJJdTCTnGlQG8UKkmDsE/yIiq =3YSN -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/