On Sat, Sep 08, 2001 at 12:33:47AM -0400, Jim Ryan wrote:
> [This followup was posted to perl.beginners and a copy was sent to the cited author.]
>
> For some reason, a simple "hello world" script I wrote runs fine in an
> xterm window by just typeing the name. But in a regular non x session I
I would appreciate any help with the following. I'm suppose go to
a URL (http://www.xyz.com/abc.html for example) and manually enter
some data (first name, last name for example) and submit it. That's
it. Problem is I have a list of 100 names, but I don't want to sit
there and enter one by one.
hi all.
today in IRAN is woman day.
because one of the greatest woman in the world was born.
her name is Fatemeh.
and all of children in this day ,give a present to her mother.
-
Best regards.
Nafiseh Saberi
Iran - Shiraz
The smooth se
Hi all,
I'm having some problem in perl scripting. here is
the scenerio. I have to read data from a file, which is in the format
head1
sub1
sub2
sub3
head2
sub4
sub5
head3
sub6...
so on. "head" is around 10 and "sub" varies from 2 to 10. My o/p has to be
something
like below.
head1 hea
hi list,
I´ve a problem: the good old linux passwd needs user input: passwd $user,
and then twice the $newpassword.
how must I write a script wich changes the password for $user to
$newpassword without user input???
please please help!!
I´ve heard, there must be the module "expect" but how must I
Dear fellow Perl afficionados,
I have run into a bit of a puzzler, wondered if anyone might have anywhere
to point me on this one:
I want my Perl script to INTERACT multiple times with another process, in
this case an Expect script.
Allow me to explain: Typically, I have written scripts wher
koff [[EMAIL PROTECTED]] quoth:
*>
*>Andrian,
*>
*>Thanks for your reply. I couldn't find stdlib.h in /usr/include . But I
*>already installed libstdc++-2.8.1.1-sol26-sparc-local , is it the same
*>one ?
stdlib.h isn't installed?! As far as I know that isn't even Suns code,
rather part of SysV. I
On Sat, 8 Sep 2001, Gustavo A. Baratto wrote:
> Thanks for the help. I wasn't initializing the $self->{ARRAY} with [].
> But later in the code I need to do something like this:
>
> @self->{ARRAY} = @another_array; # of course this is giving me an error.
You still need an array reference:
$self
On Sep 8, Gary Luther said:
>$line =~ s/\s{2,}(\w+(\s?\W?\w+)*).*?/$1/;
I think you want to use something a bit simpler for the \w+... part:
$line =~ s/\s{2,}(\S+(?:\s\S+)*).*/$1/;
That gets non-whitespace (\S+) followed by any number of occurrences of a
single whitespace followed by MORE no
ohhh boy... It worked greatly.
I have a lng way til I get all those tricks.
Thank you very much.
"Jeff 'Japhy/Marillion' Pinyan" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On
does anyone knows what happened with http://www.perldoc.com/perl5.6/pod/ ?
there's nothing in there since thursday.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Sep 8, Gustavo A. Baratto said:
>Thanks for the help. I wasn't initializing the $self->{ARRAY} with [].
>But later in the code I need to do something like this:
>
>@self->{ARRAY} = @another_array; # of course this is giving me an error.
@{ $self->{ARRAY } = @another_array;
or
$self->{A
I have the following line:
REQUESTED DATE:LPD WRITE UP/OFF PARAMETERS
RUN DATE: 09/06/01 16:30
Now this is just one manifestation of the line or similar lines.
It may or may not have the REQUESTED DATE: phrase.
It may or may not hav
I have never used perl before today.
I am trying to run a perl script in windows that works fine in linux, but it
keeps stopping at a socket line, giving the following message: Invalid
argument at ./src/Irc.pl line 21, chunk 60.
Everything that I have looked at pointe me to:
http://www.perldoc.co
Thanks for the help. I wasn't initializing the $self->{ARRAY} with [].
But later in the code I need to do something like this:
@self->{ARRAY} = @another_array; # of course this is giving me an error.
Do I have to do:
for ($i=0;$i<$#another_array;$i++) {
$self->{ARRAY}[$i] = $another_arra
Raju,
Try something like this:
#
Win32::Service::GetStatus ( $s_server, $servicename, \%status );
if ( $status{"CurrentState"} == 4 ) {
print "$s_server \tis running $servicename";
} elsif ( $status{"CurrentState"} == 1 ) {
print "$s_server \tis not running $servicename";
} else {
pri
[This followup was posted to perl.beginners and a copy was sent to the cited author.]
For some reason, a simple "hello world" script I wrote runs fine in an
xterm window by just typeing the name. But in a regular non x session I
have to say "perl filename" for it to execute. Otherwise I get a
On Sat, 8 Sep 2001, Gustavo A. Baratto wrote:
> How can I have an array in a class attribute?
>
> In my constuctor this is not working: (I need $self->{ARRAY} to be an array)
>
>
> sub new
> {
> my $class = shift;
> my $self = { };
> $self->{IFCONFIG} = "/etc/ifconfig.temp";
> $se
How can I have an array in a class attribute?
In my constuctor this is not working: (I need $self->{ARRAY} to be an array)
sub new
{
my $class = shift;
my $self = { };
$self->{IFCONFIG} = "/etc/ifconfig.temp";
$self->{NEWIP} = "/home2/nas3/nas/.newip.temp";
$self->{IP} = und
Dear List,
I have installed the required module using PPM(Perl
Package Manager) and never had any problem for the
past 3 weeks. I didn't even bother to install using
the manual way until I had to update the latest
version of WWW-SEARCH 2.23. I can't seem to verify and
upgrade it using PPM, why i
[on list]
> On Apache Unix, this just hangs and does nothing and I have to do
"control d" to kill it!
>
> perl -wpi.org -e "s@/cgi-bin/forum_idx.pl@/fakecgi/fakeforum_idx.pl@"
It doesn't hang, it's waiting for input.
Other notes:
1. A backup file given .org as its extension? Weird. Most people
Thank you for your reply :-)
Now after I shutdown the PC and started it again the problem has been solved,
what I like to know is this now:
If I download software that uses perl, is there a command that tells the system
that in /usr/bin is a new executable ?
Thanks :-)
Troy Denkinger wrote:
Dear Team
I am trying to check a service on a remote machine using Win32::Service. But
it is telling "No such file or directorySuccess".
The script is given below Please look in to it..
Service.pl
use Win32::Service;
if (Win32::Service::GetStatus("hotnt006", "Server", \%status) ==0)
{ print
23 matches
Mail list logo