...

View Full Version : Split help



darkhider
12-13-2009, 08:34 PM
Hi guys, I'm trying to split this line:

1; __utma

where the 1 could be any other number, then theres a following pattern. I want to extract the 1st field only which is a number.

How can I achieve this using split?

FishMonger
12-13-2009, 09:02 PM
Start by reading the documentation for the split function.

http://perldoc.perl.org/5.10.0/functions/split.html

darkhider
12-13-2009, 10:03 PM
Start by reading the documentation for the split function.

http://perldoc.perl.org/5.10.0/functions/split.html

okay thanks. What I did was just translate all the unnecessary things to spaces.
It works I guess so I will leave it at that.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum