- or download this
printf "file = %30s ext= %10s\n", $name, $type;
- or download this
my ($filename, $ext) = split /\..*/, $file;
- or download this
my ($filename, $ext) = $file =~ /^(.+)(?:\.(.*))?$/s
- or download this
2;0 juerd@ouranos:~$ perl -e'undef christmas'
Segmentation fault
2;139 juerd@ouranos:~$