在我的perl脚本中,我有了param $FILE=/etc/sysconfig/network
$FILE=/etc/sysconfig/network
以哪种方式(在perl中)我只能剪切目录并将目录放在$ DIR param中
为了得到:
$DIR=/etc/sysconfig (like dirname /etc/sysconfig/network in shell script)
perl
perl ×1