Win XP. Active Perl and POSIX:termios not implemented

Hello,
I wrote script which work propertly on Linux Kubuntu but when I try run
it on Windows XP with Active Perl I've this warning:

POSIX::termios not implemented on this architecture at temp2.pl line 7.


Please help....

With greetings
Czarek

PS. Sorry for my English... :)

--------------------------------------------------------

use Net::Telnet;
use Term::ANSIColor;
use Term::Cap;
use POSIX;

require POSIX;
my $termios = new POSIX::Termios; #this is line no 7
$termios->getattr;
my $ospeed = $termios->getospeed;
Czarek [ Mo, 23 Juli 2007 22:38 ] [ ID #1776573 ]

Re: Win XP. Active Perl and POSIX:termios not implemented

Czarek wrote:
> Hello,
> I wrote script which work propertly on Linux Kubuntu but when I try
> run it on Windows XP with Active Perl I've this warning:
>
> POSIX::termios not implemented on this architecture at temp2.pl line
> 7.
>
> Please help....
>
> With greetings
> Czarek
>
> PS. Sorry for my English... :)
>
> --------------------------------------------------------
>
> use Net::Telnet;
> use Term::ANSIColor;
> use Term::Cap;
> use POSIX;
>
> require POSIX;
> my $termios = new POSIX::Termios; #this is line no 7
If you take a look to POSIX documentation then you can see that many
functions are not portable. I recommend you to not use POSIX if you want to
create multiplatform script or import a few POSIX functions only. Maybe you
can use some other module from Win32 family.

if($^O =~ m/win/i) {
&do_some_for_windows_platform;}
else {
&do_some_for_linux_platform;}

--

Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your mail
from another non-spammer site please.)
Petr Vileta [ Di, 24 Juli 2007 02:30 ] [ ID #1777504 ]
Perl » comp.lang.perl.modules » Win XP. Active Perl and POSIX:termios not implemented

Vorheriges Thema: How to convert ArrayOfstring in SOAP into an array of PERL?
Nächstes Thema: It's not PHP, is it? (potential new CPAN module)