Michael Kraus <[EMAIL PROTECTED]> asked: > Is: > > my ($id) = $item =~ /_(\d+)$/; > > Equivalent to: > > $item =~ /_(\d+)$/; > $id = $1;
Yes. It's especially useful when you've got more than one capture in your RE. > Wild Technology Pty Ltd , ABN 98 091 470 692 Sales - Ground [...] And that'll really make you popular around here ;-) HTH, Thomas -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>