|
Posted by Petr Vileta on July 23, 2007, 8:30 pm
Please log in for more thread options
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.)
|