0
比賽我測試下面的代碼Perl的正則表達式提取使用括號
#! /usr/bin/perl
use strict;
use English;
#this code extracts the current scripts filename
#by removing the path from the filepath
my $Script_Name = $PROGRAM_NAME;
${Script_Name} =~ s/^.*\\//; #windows path
#${Script_Name} =~ s/^.*\///; #Unix based path
print $Script_Name;
,我不明白爲什麼這些括號中提取的比賽不使用A/R修正。任何人都可以解釋爲什麼以及如何工作或指向我的一些文檔?