#adsense(728x90)
split(/pattern/, strings)
ex)
host# cat sample.pl #!/usr/bin/perl use strict; my $str = "aa bb cc"; my @list = split(/ /, $str); my $num = @list; my $i; for ( $i = 0; $i < $num; $i++) { print "$i: $list[$i]\n"; } host# ./sample.pl 0: aa 1: bb 2: cc
#adsense(728x90)