raghu_shekar has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
i have an array whose contents are like this "<NumData>1234567890</NumData>" . what i need is just the numeric value without the start and end tags. Is there any cut function in perl which will help me achieve this... It would be great if i could do this to all the elments of the array at one go. What i am trying is to pull each element from the array and perform the cut function to pull just the numeric data and put it into another array.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: use the cut function in a script
by JavaFan (Canon) on May 21, 2009 at 04:58 UTC | |
Re: use the cut function in a script
by vinoth.ree (Monsignor) on May 21, 2009 at 08:01 UTC | |
Re: use the cut function in a script
by graff (Chancellor) on May 21, 2009 at 11:25 UTC | |
Re: use the cut function in a script
by apl (Monsignor) on May 21, 2009 at 11:41 UTC | |
Re: use the cut function in a script
by citromatik (Curate) on May 21, 2009 at 12:38 UTC | |
Re: use the cut function in a script
by Polyglot (Chaplain) on May 21, 2009 at 05:34 UTC | |
by Anonymous Monk on May 21, 2009 at 06:31 UTC | |
Re: use the cut function in a script
by leslie (Pilgrim) on May 21, 2009 at 11:54 UTC |
Back to
Seekers of Perl Wisdom