Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: use the cut function in a script

by Polyglot (Pilgrim)
on May 21, 2009 at 05:34 UTC ( #765383=note: print w/ replies, xml ) Need Help??


in reply to use the cut function in a script

Just for the sake of education, here's another regexp method that would focus on those tags:

foreach $line(@source_array) { $line =~ s/<.*?>//g; push @target_array, $line; }

Blessings,

~Polyglot~


Comment on Re: use the cut function in a script
Download Code
Replies are listed 'Best First'.
Re^2: use the cut function in a script
by Anonymous Monk on May 21, 2009 at 06:31 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (19)
As of 2015-07-07 17:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls