Shishir, et al -- ...and then Shishir K. Singh said... % ... % >Again, the most straightforward solution is: % % > ($out) = $in =~ /\((.*?)\)/; % % You are right ...this will be the the most simple sol..in case nothing needs to be done to $out...but in case % some thing needs to be done on $out which I am assuming to be true, then the value of $out needs to be checked again, which introduces additional lines and variable declaration.
Well, not if you've been a good boy and put your my $out in tight scope so that it's destroyed after each check and before the next :-) HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
msg26633/pgp00000.pgp
Description: PGP signature