Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^5: newbie need help with a simple code

by tobyink (Abbot)
on Mar 05, 2013 at 06:35 UTC ( #1021759=note: print w/ replies, xml ) Need Help??


in reply to Re^4: newbie need help with a simple code
in thread newbie need help with a simple code

\s # one whitespace character \s+ # one or more whitespace characters \s* # zero or more whitespace characters \s{5} # exactly five whitespace characters \s{3,5} # between 3 and 5 whitespace characters
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name


Comment on Re^5: newbie need help with a simple code
Download Code
Replies are listed 'Best First'.
Re^6: newbie need help with a simple code
by AnomalousMonk (Abbot) on Mar 05, 2013 at 07:35 UTC

    You forgot
        \s{3,}   # 3 or more whitespace characters

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2015-07-29 03:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls