Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: to interchange line no of file & print

by Anonymous Monk
on Jun 28, 2011 at 08:49 UTC ( [id://911700]=note: print w/replies, xml ) Need Help??


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

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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://911700]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-03-29 06:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found