[ create a new paste ] login | about

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

Perl, pasted on Jul 3:
1
2
3
my $test_string = "  some test stuff\ndivided to\n  provide the challenge";
$test_string =~ s/^[ ]{2}/\t/gm;
print $test_string;


Output:
1
2
3
	some test stuff
divided to
	provide the challenge


Create a new paste based on this one


Comments: