Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: what is \ in perl

by HuckinFappy (Pilgrim)
on Jun 22, 2006 at 03:38 UTC ( [id://556820]=note: print w/replies, xml ) Need Help??


in reply to what is \ in perl

And it does things which you may not expect. Well, I didn't expect them, but when I think about it, things make sense:
DB<15> $bar = \do { my $n = @INC ; "$n entries in \@INC" } DB<16> print $$bar 6 entries in @INC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-09-15 14:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (21 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.