in reply to Re: Store multiple match single line
in thread Store multiple match single line

You mean this, right?

$_ = "123patternABCpatternJJEK"; while ($_ =~ /(pattern)/gim) { push @array, $1; }

Replies are listed 'Best First'.
Re^3: Store multiple match single line
by Utilitarian (Vicar) on Sep 24, 2010 at 14:41 UTC
    I mean that

    print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."