APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

Perl Skills Test

© 2005 A.P. Lawrence



"split" can use regular expressions, and this says split on "," followed by any number of spaces (including none). You could also write that like this:

@mystuff=split /,\s*/,$stuff;

which would split on any white space.

Next question

Return to Question q0019

These tests were created many years ago. Many questions are out of date and I have no plans to update them.