in reply to Interpolation inside regex

Nitpick: None of the proposed solutions will give you the required output for the @names you showed in the OP!

D:\temp>perl -we "my @names = qw(user_name, house_name, street_address +, phone_number, date_of_birth);" Possible attempt to separate words with commas at -e line 1.

Replies are listed 'Best First'.
Re^2: Interpolation inside regex
by vc_will_do (Sexton) on Sep 07, 2007 at 11:56 UTC
    remove those comas as we don't need separated when we quote with qw.
    @names = qw(user_name house_name street_address phone_number date_of_b +irth);

    Thanks for pointing out the bug. We all were concentrating on regex and not on the typo. Any way THANKS