in reply to Re: to interchange line no of file & print
in thread to interchange line no of file & print

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^3: to interchange line no of file & print
by Anonymous Monk on Jun 28, 2011 at 08:49 UTC
    Every time you create a post here, you get a reminder to use code tags, it literally looks like
    Use:  <p> text here (a paragraph) </p>
    and:  <code> code here </code>
    to format your post; it's "PerlMonks-approved HTML"

    so follow the advice, and put your code in between code tags, its where code (and data) goes :)

    Now your code doesn't use lexical filehandles, which means you have not read perlintro . It also doesn't use strict or warnings, and in fact, it has syntax errors

    $ perl -c pm.911696.pl No comma allowed after filehandle at pm.911696.pl line 10
    So for the time being you should forget about whatever program you're trying to write and work through perlintro to get up to speed.

    Read also How do I post a question effectively?

    Read this if you want to cut your development time in half!