Perl::expect script error
From: ruud (geen_at_mail.invalid)
Date: 01/19/05
- Next message: A. Sinan Unur: "Re: Perl::expect script error"
- Previous message: Matt Garrish: "Re: HTTP Get with Proxy authentication"
- Next in thread: A. Sinan Unur: "Re: Perl::expect script error"
- Reply: A. Sinan Unur: "Re: Perl::expect script error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 19 Jan 2005 07:40:51 +0100
I'm writing a script that can post to my newsserver.
#!/usr/bin/perl
use Expect;
use warnings;
use strict;
my $post = "post";
my $hallo = "200";
my $quit = "quit";
my $conn;
$conn -> spawn ("news.nntpserver.com:119");
$conn -> expect ("$hallo");
print "$post\n";
But i get this error:
Can't call method "spawn" on an undefined value at ./p line 11.
What is wrong with this expect script ?
-- Gr. Ruud
- Next message: A. Sinan Unur: "Re: Perl::expect script error"
- Previous message: Matt Garrish: "Re: HTTP Get with Proxy authentication"
- Next in thread: A. Sinan Unur: "Re: Perl::expect script error"
- Reply: A. Sinan Unur: "Re: Perl::expect script error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|