Hi,

I have a string that looks like this:

my $string = "1, 3, 0. 0. 0. 0, 22, Zak',adfk $&! mac., ";


Basically, there are seven fields. after the bird, everything up to the last 
comma is the 5th field. 6th field is blank.

Now my problem is splitting it and extracting the 5th field.

If I will do a (split/,/,$string)[-2]) then i will only get "adfk $&! mac."
I need to get the entire "Zak' , adfk $&! mac."




      

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to