私は完全な perl 初心者です。perl 5.10 を使用して perl スクリプトを実行していて、次の警告が表示されます。
$* is no longer supported at migrate.pl line 380.
$* が何をしたか、そして現在推奨されている代替品は何か説明できますか? または、これについて説明しているドキュメントを教えていただければ幸いです。
私が実行しているスクリプトは、ソース コード データベースを vss から svn に移行するためのもので、ここにあります: http://www.x2systems.com/files/migrate.pl.txt
それを使用する 2 つのコード スニペットは次のとおりです。
$* = 1;
$/ = ':';
$cmd = $SSCMD . " Dir -I- \"$proj\"";
$_ = `$cmd`;
# what this next expression does is to merge wrapped lines like:
# $/DeviceAuthority/src/com/eclyptic/networkdevicedomain/deviceinterrogator/excep
# tion:
# into:
# $/DeviceAuthority/src/com/eclyptic/networkdevicedomain/deviceinterrogator/exception:
s/\n((\w*\-*\.*\w*\/*)+\:)/$1/g;
$* = 0;
そして、後でいくつかの方法:
$cmd = $SSCMD . " get -GTM -W -I-Y -GL\"$localdir\" -V$version \"$file\" 2>&1";
$out = `$cmd`;
# get rid of stupid VSS warning messages
$* = 1;
$out =~ s/\n?Project.*rebuilt\.//g;
$out =~ s/\n?File.*rebuilt\.//g;
$out =~ s/\n.*was moved out of this project.*rebuilt\.//g;
$out =~ s/\nContinue anyway.*Y//g;
$* = 0;
どうもありがとう、
- ロリー