I have a file that prints a variable to another file like so.
basically I want to append '04' right after the variable's value (without a space).
I tried (say if $line=="User1")
which gave me "suUser1^D"
and
which gave me "suUser1\04"
what I am trying to get is "suUser104" as the output of the script.
Does anyone know a way around this?
regards
Code:
open (OUT, ">profile_serv") || die ($!);
$line = <IN>;
while ($line) {
chop($line);
print OUT ("su$line04");
}
basically I want to append '04' right after the variable's value (without a space).
I tried (say if $line=="User1")
Code:
print OUT ("su$line\04");
and
Code:
print OUT ("su$line\04");
what I am trying to get is "suUser104" as the output of the script.
Does anyone know a way around this?
regards