blog of sness
my($text) = "/etc/sysconfig/network-scripts/ifcfg-eth0"; my($directory, $filename) = $text =~ m/(.*\/)(.*)$/; print "D=$directory, F=$filename\n";