BTW, the deliminator can be any single char if that makes any difference.#!/usr/bin/perl -w $delim = "."; $line = "testing.someting.with.fields"; foreach $field (split(/$delim/, $line)) { print "$field\n"; }
In reply to Split - what am i doing wrong? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |