Split string into array

Perl Add comments


$x = "Calvin and Hobbes";
@words = split /\s+/, $x;

Leave a Reply

You must be logged in to post a comment.

WebSite Powered by webHauser
Entries RSS Comments RSS Login