[wplug] Scripting - Text file manipulation help - probably perl

Charles 'Mack' Rhinelander mack.rhinelander99 at gmail.com
Thu Mar 22 17:14:44 EST 2007


Hi, Gentgeen, that perl program with @rows=<> must be run with a redirect (
< ) on the command line, like:

perl oldformat2rt.pl <datafile

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.

Mack Rhinelander

On 3/22/07, Gentgeen <gentgeen at linuxmail.org> wrote:
>
> On Tue, 20 Mar 2007 10:10:39 -0400
> Gentgeen <gentgeen at linuxmail.org> wrote:
>
> >
> > I need a bit of help changing a tab-delimited document (.tsv file)
> > into a special format so I can import it into our trouble ticket
> > system (RT).
>
> I just wanted to get back to everyone that helped and say "Thank you".
>
> I actually tried all three of the scripts that were sent.  I did have a
> problem with UUSWCMMHKFQU at spammotel.com suggestion, but the other two
> worked "out of the box".  It was giving me an error about the first line
> - " @rows = <>; "
>
> I will be looking into the Perl books, and thanks again for the heads up
> on the LUG discount.
>
> This is the perfect example as to why I love linux... think I need to
> note this thread so I can show to my "non-believer" friends.
>
>
> --
> http://gentgeen.homelinux.org
>
> #############################################################
> Associate yourself with men of good quality if you esteem
> your own reputation; for 'tis better to be alone then in bad
> company.        - George Washington, Rules of Civility
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.wplug.org/pipermail/wplug/attachments/20070322/2de862df/attachment.html


More information about the wplug mailing list