From 474937e74cab482e0fab6f7458a702b983d828ed Mon Sep 17 00:00:00 2001 From: Mikael Nordin Date: Mon, 16 Jan 2017 15:24:27 +0100 Subject: [PATCH] Better with arbitrary number of white space --- cluster_cron.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster_cron.pl b/cluster_cron.pl index e63714e..f75ddf9 100755 --- a/cluster_cron.pl +++ b/cluster_cron.pl @@ -154,7 +154,7 @@ sub uncomment { open(INFILE,"<$infile"); my $content = ''; while(my $line = ) { - $line =~ s/^#\s{1,4}([\d\*])/ $1/g; + $line =~ s/^#\s*([\d\*])/ $1/g; $content .= $line; }