On Tue, 18 Jan 2005 15:30:42 +0100, Tor Hildrum <[EMAIL PROTECTED]> wrote: > On Tue, 18 Jan 2005 13:22:14 +0000, RichT <[EMAIL PROTECTED] > wrote: > > Hi again, > > ok i made the changes sugested, but something is still wrong. > > the output im getting is > > ---------------------------------------------------------------------------------- > > "interface is "ATM0 > > "interface is "ATM0.38 > > ---------------------------------------------------------------------------------- > > > > ie the " is at the start of the line??? > > > print "\$interface is \"$interface\"\n"; > > Uhm? I can't see anything wrong here. Might be a linefeed at the end > of $interface though. > > Try this code: > $interface =~ s/\r//g; > print "\$interface is \"$interface\"\n";
Grate that worked, the varible must of have a \r and a \n at the end. thank you very much... how would i find our what escape chars are in a varible? or is there a way to print out a string with out perl translating the escape chars? Thank you again, Ritchie > > Tor > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/ > <http://learn.perl.org/first-response > > > -- -- Fnord... <-- http://23.me.uk --> <-- http://info-x.co.uk --> <-- http://seti23.org --> <-- Get FireFox Now --> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>