Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

$:: is used

by sandy_1028 (Initiate)
on Nov 10, 2008 at 05:16 UTC ( [id://722553]=perlquestion: print w/replies, xml ) Need Help??

sandy_1028 has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: $:: is used
by ady (Deacon) on Nov 10, 2008 at 06:13 UTC
    $:
    The current set of characters after which a string may be broken to fill continuation fields (starting with ^) in a format. Default is " \n-", to break on whitespace or hyphens. (Mnemonic: a "colon" in poetry is a part of a line.)

    See perldoc

    allan
      perl -MO=Deparse,-p -e"die $::" die($main::); -e syntax OK
      $::foo is $main::foo
Re: $:: is used
by Anonymous Monk on Nov 10, 2008 at 05:30 UTC
    What code?
Re: $:: is used
by stvn (Monsignor) on Nov 11, 2008 at 02:39 UTC

    Anonymous Monk (the second one, not the first) has it right. But to be more exact, it refers to the top level namespace, which is usually also called "main".

    -stvn

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-25 12:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found