in reply to
global regex
your code matches the first 'word' and prints it, then goes to the next line. One way of matching all words on a line is
while(<DATA>) { while ( /(\w+)/g ) { print "$1 "; } }
[download]
cheers
si_lence
Comment on
Re: global regex
Download
Code
In Section
Seekers of Perl Wisdom