Hi, Gentgeen, that perl program with @rows=<> must be run with a redirect ( < ) on the command line, like:<br><br>perl oldformat2rt.pl <datafile<br><br>That's how the <> operator will receive its input from datafile. Without the '<datafile' on the command line, <> will receive nothing, so @rows will be empty.
<br><br>Mack Rhinelander<br><br><div><span class="gmail_quote">On 3/22/07, <b class="gmail_sendername">Gentgeen</b> <<a href="mailto:gentgeen@linuxmail.org">gentgeen@linuxmail.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, 20 Mar 2007 10:10:39 -0400<br>Gentgeen <<a href="mailto:gentgeen@linuxmail.org">gentgeen@linuxmail.org</a>> wrote:<br><br>><br>> I need a bit of help changing a tab-delimited document (.tsv file)<br>> into a special format so I can import it into our trouble ticket
<br>> system (RT).<br><br>I just wanted to get back to everyone that helped and say "Thank you".<br><br>I actually tried all three of the scripts that were sent. I did have a<br>problem with <a href="mailto:UUSWCMMHKFQU@spammotel.com">
UUSWCMMHKFQU@spammotel.com</a> suggestion, but the other two<br>worked "out of the box". It was giving me an error about the first line<br>- " @rows = <>; "<br><br>I will be looking into the Perl books, and thanks again for the heads up
<br>on the LUG discount.<br><br>This is the perfect example as to why I love linux... think I need to<br>note this thread so I can show to my "non-believer" friends.<br><br><br>--<br><a href="http://gentgeen.homelinux.org">
http://gentgeen.homelinux.org</a><br><br>#############################################################<br> Associate yourself with men of good quality if you esteem<br> your own reputation; for 'tis better to be alone then in bad
<br> company. - George Washington, Rules of Civility<br>_______________________________________________<br>wplug mailing list<br><a href="mailto:wplug@wplug.org">wplug@wplug.org</a><br><a href="http://www.wplug.org/mailman/listinfo/wplug">
http://www.wplug.org/mailman/listinfo/wplug</a><br></blockquote></div><br>