Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^9: Feature Idea: qr//e (Quote-like-Operators)

by LanX (Cardinal)
on Jan 20, 2017 at 14:42 UTC ( #1180008=note: print w/replies, xml ) Need Help??

in reply to Re^8: Feature Idea: qr//e (barewords)
in thread Feature Idea: qr//e (updated with solutions)

> if you manage to enter a subroutine named s into the stash you can certainly call it with &s

to illustrate what I meant, *s and &s are not "bare" because of the sigils.

But a bare word s is supposed to start a s/// resp. s()() or s{}{} or ... depending on whatever character follows (even with empty space in between)

This makes parsing particularly difficult.

use strict; use warnings; *s = sub { warn "s called" }; &s(); # --- not working # sub s { # warn "s called" # } # --- neither # s();
s called at c:/tmp/pm/ line 11.

This problem should apply for all perlop#Quote-and-Quote-like-Operators .

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (2)
As of 2021-04-10 12:21 GMT
Find Nodes?
    Voting Booth?

    No recent polls found