On Dec 1, 8:28 am, [EMAIL PROTECTED] (AndrewMcHorney) wrote: > Hello > > I have a string that I would like to append a "\" onto the end of the > string. I tried doing a $string_name."\n" but it is not doing anything. > > Thanks, > Andrew
Hi Andrew, It sounds like you want a newline at the end as well, so I would recommend trying print "$string_name\\\n" This will append a "\" followed by a newline (\n). Because "\" has a special meaning in Perl programs, you need to prefix it with another "\" character if you want to actually print the literal character itself. Hope this helps! Darryll -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/