use strict ;
use warnings ;

open( FH , "<" , "samplecode.txt" ) or die "Can't open file!$!\n" ;
my $code = "" ;
{
   local $/ ;
   $code = <FH> ; 
}
close FH ;
$code =~ s,/\*.*?\*/,,sg ;
print $code . "\n" ;