Hi, I was wondering if there is anybody who can show me the *correct* way to use a fast pattern-search-and-assign.
I mean: I am extracting viertual aliases from a postfix config file: # cannot use 'split' function, some statements in the second field may contain whitespaces (e.g. ERROR "blah blah") my ($virtual, $address) = ($_ =~ /^([^\s]+) (.*)$/); but I always get: "Use of uninitialized value in printf at ./extract_users_virtusertable.pl line 16" even if I try using the slow approach (extract, then assign using $1 and $2), it doesn't work. What's wrong? TIA ----------------------------- Mariano Cunietti System Administrator Enter S.r.l. Via Stefanardo da Vimercate, 28 20128 - Milano - Italy Tel. +39 02 25514319 Fax +39 02 25514303 [EMAIL PROTECTED] www.enter.it - www.enterpoint.it ----------------------------- Gruppo Y2K - www.gruppoy2k.it -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>