Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Counting the number of items returned by split without using a named array

by blazar (Canon)
on May 03, 2006 at 10:21 UTC ( #547108=note: print w/replies, xml ) Need Help??


in reply to Re: Counting the number of items returned by split without using a named array
in thread Counting the number of items returned by split without using a named array

No, no, no, that would modify the original string in a most probably unwanted way. And if you really wanted to do it, then probably it should have been \s+. But you do not want to do so: a match would be better suited.

  • Comment on Re^2: Counting the number of items returned by split without using a named array
  • Download Code

Replies are listed 'Best First'.
Re^3: Counting the number of items returned by split without using a named array
by lima1 (Curate) on May 03, 2006 at 14:37 UTC
    I know that of course. It is just one quick n dirty way to count blanks (therefore the "e.g." ). but the goatse thing is nicer, i must admit

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2021-01-23 11:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?