Blog
Developers
Careers
Support
Contact
Gossamer Threads
Solutions
Results
About
Mailing Lists
Resource Centre
Forum
Tools
Home
Who's Online
Tags
Favourites
Login
Forum Search
(
Advanced Search
)
This forum
This category
All forums
for
Home
:
General
:
Perl Programming
:
split -> array, fast count
Previous Thread
Next Thread
Print Thread
View Threaded
Oct 28, 2002, 6:45 AM
robyone
User
(119 posts)
Oct 28, 2002, 6:45 AM
Post #1 of 3
Views: 3569
Shortcut
split -> array, fast count
Is there a quick way to get (count) how many times it has been splited? How many $data[uptonumber] are found.
@data=split(/:/);
Oct 28, 2002, 7:51 AM
Andy
Veteran
/ Moderator
(18441 posts)
Oct 28, 2002, 7:51 AM
Post #2 of 3
Views: 3494
Shortcut
Re: [robyone] split -> array, fast count
In reply to
I'm not quite sure what you are asking...could you elaborate please?
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my
Amazon Wish List
GLinks ULTRA Package
|
GLinks ULTRA Package PRO
Links SQL Plugins
|
Website Design and SEO
|
UltraNerds
|
ULTRAGLobals Plugin
|
Pre-Made Template Sets
|
FREE GLinks Plugins!
Oct 28, 2002, 10:15 AM
cornball
User
(238 posts)
Oct 28, 2002, 10:15 AM
Post #3 of 3
Views: 3469
Shortcut
Re: [robyone] split -> array, fast count
In reply to
Hello robyone,
Do you mean how many items are now in @data after the split is finished ?
Try:
$size = @data;
$size = scalar @data;
$size = $#data + 1;
Hope this helps
kode
Previous Thread
Next Thread
Print Thread
View Threaded