start with the regex. It's going to look in $data for items that match and return the elements caught by the ()'s into @array. the regex will catch anything that:
1) starts with a ( 2) is made up of at least 1 digit character 3) ends with a ) On 9/8/06, J. Alejandro Noli <[EMAIL PROTECTED]> wrote:
Jeff Pang <[EMAIL PROTECTED]> writes: > Hi,how about this? > > my @array = $data =~ /\((\d+)\)/g; And what does this means ^^^^^^^^^^ ? Thanks ! > > -----Original Message----- >>From: john wright <[EMAIL PROTECTED]> >>Sent: Sep 5, 2006 11:29 AM >>To: beginners@perl.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>