On Jul 30, nkuipers said: >I'm probably not understanding what exactly you need....but...as I see it, >$err holds whatever error message that you captured with a regex. So if you >want to make a variable with the same name as the literal, dereference a >variable with the name held in $err and the new var will autovivify: > >($err) = ( $line =~ / ERR (\w+) /i ); >my $$err;
No. First, symbolic references are EVIL. Second, you can't do that with my(). -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. [ I'm looking for programming work. If you like my work, let me know. ] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]