qw{} is a nice-looking way for writing lists. Is there a similar that interpolates the words, i.e. expands variables? perlop does not seem to mention any.
qw{} is a nice-looking way for writing lists. Is there a similar that interpolates
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, there is no built-in, but many of us write our own.
Also for the two kinds of
ql()needs for lists of lines. I usedeQfor aq()version anddeQQfor aqqversion of those that works with Perl’s “hasta” operator:That lets me use stuff like this:
or
See how that works?