Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. rob54321

    Perl how to read line from file with interpolation

    Hi Yes that also works. Thanks for all your help Mikrom. Rob
  2. rob54321

    Perl how to read line from file with interpolation

    Hi Mikrom, I have solved this issue. I think my original question was not clear. I want to read the line one\ntwo from a file and I wanted the \n to be interpolated. I have written a stream line editor like sed and receive commands from a file. These lines are commands for regular expressions...
  3. rob54321

    Perl how to read line from file with interpolation

    Hi, thanks for the reply. I tried this code and on my computer it still prints one\n\two\three as a single line with no interpolation. I'm not sure why??.
  4. rob54321

    Perl how to read line from file with interpolation

    Hi I have the following code: open FH, "<", "file.txt"; my $line = <FH>; print "line = " . $line . "\n"; file.txt contains one line: one\ntwo The string $line is printed literally. What do I have to do to get it to print one two ? I have tried opening the file with :raw :crlf :any but nothing...

Part and Inventory Search

Back
Top