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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by mikilh

  1. mikilh

    reading and changing file content

    #!/usr/bin/perl open (example, "tablemetadata.txt") or die ("Could not open file. <br> $!"); while ($text=<example>) { chomp($text); next if $text =~ /^\s*$/; $text=~s/^\s+//; $text=~ s/^\s+//; print "<< $text >>$/"; } close (example);
  2. mikilh

    reading and changing file content

    I'm new to perl. I would like to read a text file and enclose each line in brackets (just for the heck of it). I can read the file and add stuff to the beginning of each line, but I can't seem to get stuff added to the end of each line. For example, this is a line of text I want << this is...

Part and Inventory Search

Back
Top