Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re (tilly) 1: U.S. State Names

by merlyn (Sage)
on Feb 26, 2001 at 20:50 UTC ( [id://60888]=note: print w/replies, xml ) Need Help??


in reply to Re (tilly) 1: U.S. State Names
in thread U.S. State Names

Which would be the same as split /\s{2,}/, ..., right?

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re (tilly) 3: U.S. State Names
by tilly (Archbishop) on Feb 26, 2001 at 21:19 UTC
    Right down to the number of characters.

    I find \s\s+ slightly more obvious than \s{2,} but that is entirely a matter of taste.

    *shrug*

    (Something tells me that there is a remote chance that Ilya treats the {2,} construct as more complex, falls into a general case, and might not always optimize it as well. If you ask him, please tell me the answer.)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-06-15 20:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.