Mariano Cunietti [MC], on Tuesday, February 01, 2005 at 16:19 (+0100) typed:
MC> I was wondering if there is anybody who can show me the *correct* way to MC> use a fast pattern-search-and-assign. MC> I mean: I am extracting viertual aliases from a postfix config file: 1. you did not change subject 2. if you even did, it is bad posting, if you reply to something and change subject (bad references) 3. always make new message and fill TO field with beginners@perl.org MC> # cannot use 'split' function, some statements in the second field may MC> contain whitespaces (e.g. ERROR "blah blah") MC> my ($virtual, $address) = ($_ =~ /^([^\s]+) (.*)$/); I am not on UNIX, but I should help you, if you send some example data (always do that). -- ...m8s, cu l8r, Brano. ["Two wrongs do not make a right; it usually takes three or more." L.Long] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>