Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: using a string or file in qw

by jasonk (Parson)
on Jan 22, 2009 at 18:47 UTC ( #738262=note: print w/ replies, xml ) Need Help??


in reply to using a string or file in qw

my @words = split( ' ', $words ); print join ' ', grep { ! $stopwords->{ $_ } } @words;

Then I suggest you read a good book, such as "Learning Perl"


www.jasonkohles.com
We're not surrounded, we're in a target-rich environment!


Comment on Re: using a string or file in qw
Download Code
Replies are listed 'Best First'.
Re^2: using a string or file in qw
by Bloodnok (Vicar) on Jan 22, 2009 at 19:52 UTC
    ... or even:
    . . print join ' ', grep ! $stopwords->{ $_ }, split( ' ', $words ); . .
    - assuming @words isn't required later...

    A user level that continues to overstate my experience :-))

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2015-07-31 02:23 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 (274 votes), past polls