[ create a new paste ] login | about

Link: http://codepad.org/kKBu9Uxp    [ raw code | output | fork ]

Perl, pasted on Sep 14:
1
2
3
4
$s = "1.2";
$s1 = "4.2.5";
$s =~ s/(\d\.\d)(\.\d)?/'@Version ' . $1 . ($2?$2:'.0')/ge;
print $s;


Output:
1
@Version 1.2.0


Create a new paste based on this one


Comments: