Win XP. Active Perl and POSIX:termios not implemented
am 23.07.2007 22:38:37 von Czarek
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;
Re: Win XP. Active Perl and POSIX:termios not implemented
am 24.07.2007 02:30:55 von Petr Vileta
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.)