Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Interpolation inside regex

by pKai (Priest)
on Sep 07, 2007 at 11:38 UTC ( #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
Node Status?
node history
Node Type: note [id://637623]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2021-04-23 09:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?