$sca =~ s/#([^#]+)#/&cmd($1)/eg;