Click here to get back home

Win XP. Active Perl and POSIX:termios not implemented

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Win XP. Active Perl and POSIX:termios not implemented Czarek 07-23-2007
Posted by Czarek on July 23, 2007, 4:38 pm
Please log in for more thread options


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;

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.)



Similar ThreadsPosted
Install ing GD Active Perl issues July 25, 2006, 1:55 pm
working www::search module for active perl 5.8XX December 13, 2005, 9:39 pm
Active state moduals July 8, 2004, 12:53 pm
SOAP::Lite installation: mod_perl not active September 8, 2004, 3:19 am
question(s) re: win32::ole and active-directory interaction June 19, 2006, 10:26 pm
SOAP::Lite - is Barnes and Noble web service still active? July 6, 2007, 9:36 am
checking userid and password against windows domain (Active directory) June 9, 2005, 10:57 am
ANNOUNCE: Initial release of WSF/Perl (Perl bindings for a WS-* framework) October 4, 2007, 1:37 am
PLJava - Perl embeded into Java (calling Perl from Java) - 1sr release - call for tests and review, please. July 13, 2004, 4:06 am
Perl MakeMaker - how to force Perl linking with the static C library (libcrt.lib) instead of dynamic C library (msvcrt.lib) April 17, 2007, 5:22 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap