Perl Regex: replace and assign

#! perl -w
$/ = "/n";

$fred = "this is justification";
($tom = $fred) =~ s/this/that/;
print $fred;
print $tom;

阅读更多
文章标签: perl regex
上一篇Perl Regex: usage of non capturing, (more powerful split)
下一篇Perl Regex: extract words
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭