in reply to Re^3: Problem in pattern matching with alternation
in thread Problem in pattern matching with alternation

print (split /\s+/)[2];  # print third "word" of line
Ooops, you forget the + :-) It gives me,
syntax error at __FILE__ line __LINE__, near ")[" Execution of -e aborted due to compilation errors.

Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!