Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Interpolation inside regex

by pKai (Priest)
on Sep 07, 2007 at 11:38 UTC ( [id://637623]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://637623]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-25 19:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found