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

Re^4: newbie need help with a simple code

by perlmonk007 (Novice)
on Mar 05, 2013 at 05:22 UTC ( [id://1021753]=note: print w/replies, xml ) Need Help??


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

also the space between the characters is variable, it is not just one space, the file is such, could you tell me a regex for that please
  • Comment on Re^4: newbie need help with a simple code

Replies are listed 'Best First'.
Re^5: newbie need help with a simple code
by tobyink (Canon) on Mar 05, 2013 at 06:35 UTC
    \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

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

Re^5: newbie need help with a simple code
by ww (Archbishop) on Mar 05, 2013 at 14:26 UTC
    That's a bit of information that should have been visible in your sample data.

    If you didn't program your executable by toggling in binary, it wasn't really programming!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-23 12:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found