John W. Krahn wrote:
yitzle wrote:
Works:
    my $t = shift;
    my $id = qr($t);
Doesn't work:
    my $id = qr(shift);

Why?

perldoc -q "How do I expand function calls in a string"

It's because qr is not a function, it's a quote-like operator.

Also see `perldoc perlop` and search for 'Quote and Quote-like Operators' and 
'qr/STRING/imosx'.


--
Just my 0.00000002 million dollars worth,
 Shawn

"For the things we have to learn before we can do them, we learn by doing them."
 Aristotle

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to