in reply to Re^4: Interact with mainframe screen
in thread Interact with mainframe screen
Please learn about Perl packages. The package statement declares a package. You might want to read a short introduction into Perl Object Oriented Programming, maybe the perlboot or some other tutorial on the matter. Until you understand this, you won't understand what parameters are passed to the ->new() constructor.
You don't show the relevant part of your failing code, so I cannot help you with your further problems. I guess that you have misunderstood my code or changed my code in some ways that make it not work anymore, but it's hard to tell without seeing any code.
I didn't show you the implementation of the ->cols() subroutine. You will have to write it yourself. The PCOM subroutine to call is obvious from the PCOM documentation. You might also simply want to hardcode the value to 78, if all your terminal sessions have 78 columns.
The line
my ($self) = "@_";
makes little sense. I don't find such a line in the code I posted, so this is an unrelated error introduced by you into code you did not show.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Interact with mainframe screen
by notveryperlish (Initiate) on Jun 13, 2007 at 14:55 UTC | |
by Corion (Patriarch) on Jun 13, 2007 at 14:59 UTC |