Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: What is this Perlism called...and what does it do?

by Anonymous Monk
on Oct 29, 2021 at 16:07 UTC ( [id://11138219]=note: print w/replies, xml ) Need Help??


in reply to What is this Perlism called...and what does it do?

If you want, you can also expand the angle brackets into something (IM(NS)HO) more readable:

use File::Glob 'bsd_glob';

...

( $bcsdir ) = bsd_glob( "$bcsdir*" );

Note that the curly brackets around the variable name in the interpolation are only needed if what comes after the variable name might look like a longer variable name. For example, you could print it as print "$bcsdir\n";, but if you wanted to pluralize the output (in English) for some reason it would have to be print "${bcsdir}s\n";. In this extremely contrived example the curly brackets keep Perl from thinking you want to interpolate $bcsdirs.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-19 19:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found