Re: Can't run Perl script out of x windows

2001-09-08 Thread Michael Fowler
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

perl interact with html?

2001-09-08 Thread Quang Bui
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.

woman day !

2001-09-08 Thread nafiseh saberi
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

Report

2001-09-08 Thread saravanakumar chinnaraj
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

using passwd in a script

2001-09-08 Thread pegr
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

Q: Can Perl interact (two-way chat) with other scripts (processes)????

2001-09-08 Thread Paul Jasa
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

Re: Wierd: SUN problem or Perl problem ?

2001-09-08 Thread Elaine -HFB- Ashton
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

Re: array as an class attribute

2001-09-08 Thread Brett W. McCoy
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

Re: HELP - Stuck with a regex

2001-09-08 Thread Jeff 'japhy/Marillion' Pinyan
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

Re: array as an class attribute

2001-09-08 Thread Gustavo A. Baratto
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

perldoc.com

2001-09-08 Thread Gustavo A. Baratto
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]

Re: array as an class attribute

2001-09-08 Thread Jeff 'japhy/Marillion' Pinyan
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

HELP - Stuck with a regex

2001-09-08 Thread Gary Luther
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

socket()

2001-09-08 Thread Tjousk
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

Re: array as an class attribute

2001-09-08 Thread Gustavo A. Baratto
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

Re: Win32::Service

2001-09-08 Thread Michael W. Jones
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

Can't run Perl script out of x windows

2001-09-08 Thread Jim Ryan
[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

Re: array as an class attribute

2001-09-08 Thread Brett W. McCoy
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

array as an class attribute

2001-09-08 Thread Gustavo A. Baratto
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

Re: PPM and manual installation

2001-09-08 Thread Sunthari
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

Re: Perl one-liner problem

2001-09-08 Thread Me
[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

Re: first encounter with Perl :-(

2001-09-08 Thread Linux User
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:

Win32::Service

2001-09-08 Thread Veeraraju_Mareddi
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