Split also works off patterns, so you need to preceed the period with a backslash to escape it.#!/usr/local/bin/perl -w my $file = "test.html"; my @title = split(/\./, $file); print "$file\n"; print "$title[1]\n";
In reply to Re: print statement problem
by sschneid
in thread print statement problem
by cal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |