Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re^3: Query about barewords

by runrig (Abbot)
on Sep 06, 2012 at 15:53 UTC ( #992124=note: print w/replies, xml ) Need Help??

in reply to Re^2: Query about barewords
in thread Query about barewords

...if the word on the left starts with a number and consists only of numbers.
As long as you don't want to keep any leading zeros.

Replies are listed 'Best First'.
Re^4: Query about barewords (octal)
by tye (Sage) on Sep 06, 2012 at 17:12 UTC
    As long as you don't want to keep any leading zeros.

    The claim is less accurate than even that:

    % say "010 => 11" 8 11


    % say "123456789012345678901234567890 => 30" 1.23456789012346e+029 30 % say "'123456789012345678901234567890' => 30" 123456789012345678901234567890 30

    But I've also long considered the failure of "use strict; Foo::Bar =>" to likely just be an oversight. I suspect a patch to Perl's tokenizer/parser to allow '::' in so-called barewords would not be terribly difficult and might even be accepted by p5p.

    - tye        

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://992124]
[marioroy]: Yes. I've been working on MCE and MCE::Shared. These are completed and released. MCE 1.830 and MCE::Shared 1.831. Saw the LWP::Simple and P::FM thread and thought to help out.
[marioroy]: Today, wanted to revisit running parallel Re: Crash with ForkManager on Windows. I tried running on Cygwin for comparison.
[marioroy]: Running parallel on Cygwin feels like running on Unix ;-)
[marioroy]: Fortunately, Strawberry Perl v5.26 runs well.
[karlgoethebier]: marioroy: He! Magic Mushrooms was a talk in the CB some days ago ;-)

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2017-09-23 16:00 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (272 votes). Check out past polls.