J
jchludzinski
I used the following code to change '//...' C++ comments to standard
'/*...*/' C-commenting (I'm sure there's a better way of doing this?).
while ( defined ($_ = <FILE>) )
{
if ($_ =~ s|\/\/|\/\*|)
{
$_ =~ s|\n|\*\/\n|;
print ("Line: ", $_);
}
}
Now how can I write the results back out to file? (Right now the only
thing I've changed is $_.)
---John
'/*...*/' C-commenting (I'm sure there's a better way of doing this?).
while ( defined ($_ = <FILE>) )
{
if ($_ =~ s|\/\/|\/\*|)
{
$_ =~ s|\n|\*\/\n|;
print ("Line: ", $_);
}
}
Now how can I write the results back out to file? (Right now the only
thing I've changed is $_.)
---John