Re: Simple question...

2001-06-20 Thread Joel Divekar
Hi Jack Please refer to my program 'Simple Mail Client' under code section on www.perlmonks.org it will takes care of mail header and will allow you to work with mail body. Do let me know if it helped you ... I am working on the update. Regards Joel Jamnet Monk www.perlmonks.org At 02:30 PM 6/

trying to convert characters into numbers based on a table

2001-06-20 Thread Cohan, Drew
I've created a simple perl script to read in words and translate them into numbers based on the phone keypad. Right now I'm using the following method: while(<>){ s/[abc]/2/gi; # inbetweens (3-8) left out for simplicity sake s/[wxy]/9/gi; } can anyone please suggest a be

Can't call method "Fields" on unblessed reference

2001-06-20 Thread Henk Klos
Hi All, I've installed Active Perl on Windows 2000 server. Installation was not a problem at all. All the functions are working OK. However, if I click on "ADO Object" in the ADO Sample section at http://localhost/PerlScript/index.htm, I get the following response; Error Type: PerlScript Error (

RE: Subject Prefix

2001-06-20 Thread Pieter Heydenrych
Actually the CC: field, which you can't create a rule for in Exchange AFAIK. > -Original Message- > From: Brett W. McCoy [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 19, 2001 3:23 PM > To: Eduard Grinvald > Cc: [EMAIL PROTECTED] > Subject: Re: Subject Prefix > > > On Tue, 19 Jun 200

RE: Subject Prefix

2001-06-20 Thread Pieter Heydenrych
I think a subject prefix is a very good idea. Just an idea, use it, don't use it ;^) > -Original Message- > From: Brett W. McCoy [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 19, 2001 3:31 PM > To: [EMAIL PROTECTED] > Subject: RE: Subject Prefix > > > On Tue, 19 Jun 2001, Pieter He

Re: Please tell your people to stop sending E-mail to me.

2001-06-20 Thread Humberto Varela
he he... i just finished receiving over 700 emails from the list during the weekend. ironic how the pleas to "stop" actually create more mail for those poor subscribers... i think the unsubscribe script is actually on the homepage at: http://learn.perl.org/ PS, you can try the "digest" versi

Re: trying to convert characters into numbers based on a table

2001-06-20 Thread Me
According to my email client, this just arrived on the list: From: "Cohan, Drew" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, June 16, 2001 2:20 PM Subject: trying to convert characters into numbers based on a table It's contents are just slightly different to the one that was al

e-mail

2001-06-20 Thread birsan g
I have unsubscribed to all your supposed E-mail subscriptions. You you PLEASE pass the word to your subscribers to stop sending e-mail to me concerning Perl. Your subscribers are flooding me e-mail 90+ e-mail a day. I original subscribed to your server to get some insight into using Perl. I am ve

problem of "require"

2001-06-20 Thread Ying Biao Zhou
Hi, all I got a message when I run the perl script, I never got this msg before, is there anyone can tell me why? How can I fix it? rplcstr.pl did not return a true value at replacestr.pl line 6 Tips: on line 6, statement is "require("rplcstr.pl");" Best regards Peter Zhou ___

Recursive subrutines

2001-06-20 Thread "Dalløkken, Espen"
I'm trying to wirte a recursive subroutine that recives an array, does some processing and then calls itself with a new array. The problem is that I never get to retrive the array after the subroutine has ran once. When it runs the second time it doesn't get the correct set of items in the passed

RE: Extracting data from a web page

2001-06-20 Thread saurabh . bansal
Randal Would the same be possible for generating dynamic queries of web pages like amazon. cheers Saurabh Bansal BTexact Technologies is a trademark of British Telecommunications plc Registered office: 81 Newgate Street London EC1A 7AJ

Looking for a specific phrase within a file...

2001-06-20 Thread Wayne Bridgman
Hi Beginners, Does anyone know how I can look for a certain phrase within a sql file (approx 6 words, normally part of a header)? Thanks in advance, Wayne

How to get out of this!!!!!!!1

2001-06-20 Thread suman sanyal
Hi..friends..i have had enough of perl...now tell me a way to get out of here..i could not do it from the unsuscribe menu..why dont you all throw me out of this mailing lists...i would be greatful. -- ___ FREE Personalized E-mail at

Re: xml problem

2001-06-20 Thread Nigel Wetters
TMTOWTDI. I don't know about how XML::Parser handles memory - last time I tried to use it to parse content.rdf from http://dmoz.org , it soaked up all my memory, then bombed. Sometimes, you need to write your own parsing subs :) >>> Chas Owens <[EMAIL PROTECTED]> 06/19/01 09:39pm >>> Please, p

How to stop mails from beginners@perl.org

2001-06-20 Thread Nigel Wetters
Some people have obviously lost the first email they received from this list, so here's a recap. To unsubscribe to the list, you need to send an email to a special email address that is formed partly from YOUR OWN email address. For example, if your email address is [EMAIL PROTECTED], you shou

Re: Extracting data from a web page

2001-06-20 Thread Me
> Randal Well I'm not Randal, but I'm going to answer anyway... > Would the same be possible for generating dynamic > queries of web pages like amazon. The points Randal made were: 1. Yahoo has URLs that return CSV files. These are not web pages though the protocol is http. The perl in

Re: problem of "require"

2001-06-20 Thread Me
Stick a: 1; at the end of the require'd file. > I got a message when I run the perl script, I never got this msg before, is > there anyone can tell me why? > How can I fix it? > rplcstr.pl did not return a true value at replacestr.pl line 6 > > Tips: on line 6, statement is "require("rplcst

RE: xml problem

2001-06-20 Thread Grant McLean
From: Nigel Wetters [mailto:[EMAIL PROTECTED]] > I don't know about how XML::Parser handles memory - last time > I tried to use it to parse content.rdf from http://dmoz.org , > it soaked up all my memory, then bombed. Sometimes, you need > to write your own parsing subs :) A casual reader coul

Re: Recursive subrutines

2001-06-20 Thread Me
> [recursive procedure not localizing array passed as parameter] > --- > &buildBranch(@someNodes); > > sub buildBranch() > { > @numNodes = @_; Use my @numNodes. my declares a new private variable each time it is encountered. Without it, @numNodes is the same variable each time the procedure g

RE: PERL PROGRAM HELP!

2001-06-20 Thread Govinderjit Dhinsa
Iv been givin this program to modify, but I can not astblish what some parts of the program are doing. From printf to } Can any body help please and run through it with me pls! open iscd,"<$ARGV[0]" or die "Cannot open $ARGV[0]",$!; open sortcode,">$ARGV[1]"; while($line=){

Re: xml problem

2001-06-20 Thread Me
> > I don't know about how XML::Parser handles memory - last time > > I tried to use it to parse content.rdf from http://dmoz.org , > > it soaked up all my memory, then bombed. Sometimes, you need > > to write your own parsing subs :) > > Is the file you referred to a really big file? dmoz is

Re: PERL PROGRAM HELP!

2001-06-20 Thread Me
> Iv been givin this program to modify, but I can not astblish what some parts > of the program are doing. From > > printf > to > } > > Can any body help please and run through it with me pls! > > > > open iscd,"<$ARGV[0]" or die "Cannot open $ARGV[0]",$!; > open sortcode,">$ARGV[1]"

Can you someone help me please

2001-06-20 Thread EDonnelly
Hi All, I have been asked to transform this bit of PERL coding into plain english, Can someone help me please. Regards, Elaine. # Exit code for the ccount form sub form_ccount_exit { if ( $_[0] == 0 ) # exit_RE detected { if ( $user_input eq $bn_done )

Re: Can you someone help me please

2001-06-20 Thread Me
> Hi All, > > I have been asked to transform this bit of PERL coding into plain english, > Can someone help me please. > > Regards, > Elaine. Before anyone attempts an answer, are you a programmer? Do you know what, say, parameters are? > # Exit code for the ccount form > sub form_ccount_exit >

RE: PERL PROGRAM HELP!

2001-06-20 Thread Govinderjit Dhinsa
Hi, I am new to perl and have been chucked in the deep end!!! I have been asked to write a perl script, with a output in report style; Description for script: Read a file, (sorted) take certain data from the file, (problem) put the cert

Help: move folder?

2001-06-20 Thread Tim Musson (palm)
Is there a Perl way to move a folder with out doing it one file at a time? (Similar to M$ Windows Explorer where you can drag a folder to another folder?) -- Timothy L. Musson [EMAIL PROTECTED] ===) IBM Global Services [EMAIL PROTECTED] (from my PalmPilot!)

Re: PERL PROGRAM HELP!

2001-06-20 Thread Me
> Hi, I am new to perl and have been chucked in the deep end!!! I have been > asked to write a perl script, with a output in report style; > > Description for script: > Read a file, (sorted) > take certain data from the file, (problem) >

Re: xml problem

2001-06-20 Thread Morgan
Thank you very much for this script. And if English had been my native lauage it had been perfect. I need the script to add my native letters as well, I'm Swedish and therfor use "åäöÅÄÖ" in the articles. Is this possible? And in the text some words is wrapped in tags, is it possible to remove

Re: move folder?

2001-06-20 Thread Me
> Is there a Perl way to move a folder with out doing it one file at a > time? (Similar to M$ Windows Explorer where you can drag a folder to > another folder?) In some cases: rename $Old $New; will work. In some cases, system ("mv $Old $New"); will work. There's a bit more detail

Perl, OLE and Speech

2001-06-20 Thread Andreas Semt
Hello, I have a problem with following script: #!/usr/local/bin/perl use Win32::OLE; use Win32; $object = Win32::OLE->new('Speech.VoiceText'); $speechObject = $object->speak("Hello"); I use an OLE object from Microsoft Voice Text (Text to Speech). However, nothing is happen. No errors, no a

Compile Errors Question

2001-06-20 Thread Conrad, Bill (ThomasTech)
Hi All Does PERL write compile errors and warnings to STDERR and if so is there any easy way to have them written to a file rather then to the console? Some language have a command line switch which allows you to redirect the error messages to a log file, but I did not see one

RE: PERL PROGRAM HELP!

2001-06-20 Thread Kipp, James
This code is a mess, your better off rewriting it. > > open iscd,"<$ARGV[0]" or die "Cannot open $ARGV[0]",$!; > open sortcode,">$ARGV[1]"; > while($line=){ > chomp $line; > @fields=split "\t",$line; > printf sortcode > "\n%6.6s%8.8s%3.3s%27.27s%20.20s%35.35s%35.35s%10.10

Re: Help: move folder?

2001-06-20 Thread Brett W. McCoy
On Wed, 20 Jun 2001, Tim Musson (palm) wrote: > Is there a Perl way to move a folder with out doing it one file at a > time? (Similar to M$ Windows Explorer where you can drag a folder to > another folder?) Of course -- take a look at the File::Copy module. It has a move function in it. -- Br

Re[2]: trying to convert characters into numbers based on a

2001-06-20 Thread WebMaster AIM-US
Same here, many duplicates in fact. I thought I was having a little deja vu until I read this one. Can the list masters look into this one please? Stephen __ Reply Separator _ Subject: Re: trying to convert chara

RE: Compile Errors Question

2001-06-20 Thread Conrad, Bill (ThomasTech)
Hi Gary I have tried redirecting the output to a file perl perl-prog.pl >perl.log but the compile error messages go to the console. Thanks Bill Conrad -Original Message- From: Gary Stainburn [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 8:36 AM To:

RE: Compile Errors Question

2001-06-20 Thread Brett W. McCoy
On Wed, 20 Jun 2001, Conrad, Bill (ThomasTech) wrote: > I have tried redirecting the output to a file > > perl perl-prog.pl >perl.log > > but the compile error messages go to the console. If you are using a Unix command-shell, if you want to redirect stderr to a file, you need

RE: Compile Errors Question

2001-06-20 Thread Conrad, Bill (ThomasTech)
Thanks Gary That worked. -Original Message- From: Gary Stainburn [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 9:14 AM To: Conrad, Bill (ThomasTech); [EMAIL PROTECTED] Subject: Re: Compile Errors Question Hi Bill, the reason you're still getting errors on the scree

RE: PROGRAM HELP!

2001-06-20 Thread Govinderjit Dhinsa
(Thanks ME, who ever you are) Hi, I have been asked to write a perl script, to format the output in to fields/columns; Description for script: *Read a existing file and put it in my requested format, *Take certain data types from the file (input), (proble

Re[2]: Help: move folder?

2001-06-20 Thread Tim Musson
Hey Brett, Wednesday, June 20, 2001, 8:38:34 AM, you wrote: >> Is there a Perl way to move a folder with out doing it one file at >> a time? (Similar to M$ Windows Explorer where you can drag a folder >> to another folder?) BWM> Of course -- take a look at the File::Copy module. It has a move B

Re[3]: Help: move folder?

2001-06-20 Thread Tim Musson
Ok, I was wrong, the folder is created in the Destination dir, but it is empty, and my perl code gives an error in the die statement... Uncaught exception from user code: Error: Permission denied What am I doing wrong here? >>> Is there a Perl way to move a folder with out doing it one

Re: Re[2]: Help: move folder?

2001-06-20 Thread Brett W. McCoy
On Wed, 20 Jun 2001, Tim Musson wrote: > BWM> Of course -- take a look at the File::Copy module. It has a move > BWM> function in it. > > Isn't File::Copy for Files? I need to move Directories. For example a > WinNT directory that has been copied to a network drive for backup. I believe it works

Re: Re[3]: Help: move folder?

2001-06-20 Thread Brett W. McCoy
On Wed, 20 Jun 2001, Tim Musson wrote: > Ok, I was wrong, the folder is created in the Destination dir, but it > is empty, and my perl code gives an error in the die statement... > > Uncaught exception from user code: > Error: Permission denied > > What am I doing wrong here? Perhaps you

RE: Perl, OLE and Speech

2001-06-20 Thread Stephen Neu
:Why? What could I do to hear the audio output? Try printing the value of $speechObject... If it is 0 or "", your speak() function might not have succeeded for one reason or another.

Re[4]: Help: move folder?

2001-06-20 Thread Tim Musson
Hey Brett, Wednesday, June 20, 2001, 9:51:09 AM, you wrote: BWM> The function may not work across filesystem boundaries, and this BWM> may include networked drives (especially on WinNT -- not sure BWM> what it can do). BWM> I think rename may also be usable, but again, it may have the same BWM>

Re[5]: Help: move folder?

2001-06-20 Thread Tim Musson
Hey Brett, Wednesday, June 20, 2001, 9:52:01 AM, you wrote: >> Uncaught exception from user code: >> Error: Permission denied >> >> What am I doing wrong here? BWM> Perhaps you don't have permission to access the drives or folders BWM> in question? Nope, my test drive is my ThinkPad's

saving text to a file...

2001-06-20 Thread Brennan, Corey
Hi all, I have a text widget that is configured to have tab stops every 100 pixels, with the text centered on the tab stop. Is there a way to save the text to a file and preserve the format so the file will look the same when opened in another text editor? Thanks! --- Corey Brennan

module installation

2001-06-20 Thread [Rajib Mukherjee]
hi all, when i install GD.pm will all the sub modules automatically be installed. eg GD::Graph GD::Image etc. cheers, rajib _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Re: PROGRAM HELP!

2001-06-20 Thread Me
> Here is two data examples from the input file > (each data is normally streachted along ONE LINE) : > (I need the three data types that are'underlined' > (ID.NUMBER, BranchNAME, ADDRESS). I don't see anything that is 'underlined'. So I can't tell what's the id number etc. I assume the add

new code .. will it work?

2001-06-20 Thread Luinrandir Hernson
Below is a piece of code that determines what web site you just came from. I want to put a line in their that will exclude me ###here is the working code if ($ENV{'HTTP_REFERER'} eq "" | '0') {$previous = "$ENV{'HTTP_HOST'}$ENV{'DOCUMENT_URI'}";} else {$previous = "$ENV{'HTTP

Re: module installation

2001-06-20 Thread Elaine -HFB- Ashton
[Rajib Mukherjee] [[EMAIL PROTECTED]] quoth: *>when i install GD.pm will all the sub modules automatically be installed. eg *>GD::Graph GD::Image etc. No, you'll have to install them separately. Also, be sure to read the README in the GD documentation as on some platforms installing GD and the l

module installation

2001-06-20 Thread [Rajib Mukherjee]
hi all, will it work if i only install GD::Graph and GD::Image without installing the GD.pm rajib _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Re: How to stop mails from beginners@perl.org

2001-06-20 Thread Randal L. Schwartz
> "Nigel" == Nigel Wetters <[EMAIL PROTECTED]> writes: Nigel> Some people have obviously lost the first email they received Nigel> from this list, so here's a recap. Nigel> To unsubscribe to the list, you need to send an email to a Nigel> special email address that is formed partly from YOUR

GD module installation

2001-06-20 Thread [Rajib Mukherjee]
hi all, i need to use GD::Graph::bars does that mean i have to begin with installing GD.pm - then GD::Graph and then GD::Graph::bars. how should i go about it. excuse me i am new to installing modules. rajib _ Get Your Privat

httpd fails to start after installing new perl version

2001-06-20 Thread Tina Messmann
hello all, i get the following error message when trying to start the httpd: Starting httpd: [Wed Jun 20 15:03:12 2001] [error] Can't locate Apache.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5

Feasible?

2001-06-20 Thread locke
Alright, I've got a little task to do for my boss man, and I think Perl might be the best way to go. Unfortunately, I'm not yet comfortably savvy to dive into the project. My question is: Is Perl suited for this project? If so, can a beginner get it done in a timely fashion? You see, we'd lik

Re: xml problem

2001-06-20 Thread Chas Owens
Hrmmm... There is a classic joke: What do you call someone who speaks many languages? A polygot. What do you call someone who speaks two languages? A bilingual. What do you call someone who speaks one language? An American. My first attempt to fix this was to add: open FH, $ARGV[0] or die "Cou

Re: Feasible?

2001-06-20 Thread Morbus Iff
>You see, we'd like to add a count of users online to our homepage. >We are an ISP, and as such, this information is stored not on the >websever that will host the page, but rather inside of the various >dial-in platforms both in the office and at our co-location points. It's certainly feasib

Re: xml problem

2001-06-20 Thread Chas Owens
On 20 Jun 2001 11:54:12 -0400, Chas Owens wrote: > open FH, ">$ARGV[0].tmp.$$" or die "Could not open $ARGV[0]:$!"; > > print FH $file; > > close FH; > > > and change > > $parser->parsefile($ARGV[0]); > > to > > $parser->parsefile("$ARGV[0].tmp.$$") I have removed the writing of $file t

Re: xml problem

2001-06-20 Thread Randal L. Schwartz
> "Chas" == Chas Owens <[EMAIL PROTECTED]> writes: Chas> #replace anything not in lower ASCII, Damn Americans Chas> for (my $i = 0; $i < length($file); $i++) { Chas> my $char = ord(substr($file, $i, 1)); Chas> if ($char > 128) { Chas> print "replacing ", chr($

Re: PROGRAM!

2001-06-20 Thread Me
[plz keep everthing on list unless there's a particularly good reason to go off list] > > (I need the three data types that are'underlined' and are in 'font > > size 14 large' That sort of formatting doesn't work on this list. (Btw, what you are calling 'data types' are really data items.

RE: saving text to a file...

2001-06-20 Thread Crystal Gruetzmacher
Take a look at the write operator, format and using |'s to center text for report writing. If you have Learning Perl (ORA) the info you need is on pp.23.24.29.116.118.119.232 the info about fileholders (so you can center your text) is on p.120. Let me try (in my novice way) to give you an example

RE: Can you someone help me please

2001-06-20 Thread Crystal Gruetzmacher
Is this your homework? Crystal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 4:19 AM To: [EMAIL PROTECTED] Subject: Can you someone help me please Hi All, I have been asked to transform this bit of PERL coding into plain english,

Re: xml problem

2001-06-20 Thread Randal L. Schwartz
> "Chas" == Chas Owens <[EMAIL PROTECTED]> writes: Chas> #replace anything not in lower ASCII, Damn Americans Chas> for (my $i = 0; $i < length($file); $i++) { Chas> my $char = ord(substr($file, $i, 1)); Chas> if ($char > 128) { Chas> print "replacing ", chr($

Newbie question about running programs from the command line.

2001-06-20 Thread SAWMaster
Hi group. Short 'n sweet question. Is there a way to run perl programs from the command line without having to precede usage with "perl" so I can go myprogram [Arguments] Instead of perl myprogram [Arguments] If there is no way to do this...would making a bat file (windows) of the same nam

Re: Can you someone help me please

2001-06-20 Thread Randal L. Schwartz
> "Crystal" == Crystal Gruetzmacher <[EMAIL PROTECTED]> writes: Crystal> Is this your homework? Nahh... that stuff is too freaky to be homework. I'll wager a pint or two that this is a new guy hired to replace a guy who got smarter and moved on to a better job, and the new guy now has inher

$self def

2001-06-20 Thread Nick Transier
Given this is my definition for self in some new constructor: sub new { $self { Next => @[Max_Level], } } First, is this the proper way to have Next be a reference to an annonymous array of size Max_Level? More importantly, how do you reference the elements in the a

Re: xml problem

2001-06-20 Thread Randal L. Schwartz
> "Randal" == Randal L Schwartz <[EMAIL PROTECTED]> writes: Randal> Take for example the string "\200abc"... Randal> After you replace "\200" with "&200;", Oh blah. I can't do math this early. "\200" is replaced with "€", but the rest of the comment stands. :) -- Randal L. Schwartz - St

Passing between Packages

2001-06-20 Thread Nick Transier
I have two different packages that access each others methods. (where in my case one package is an element I have defined and the other package is an implementation of a list of those elements) When I call a method from package 1 with an object from package 2. the method in package 1 takes a $

Re: $self def

2001-06-20 Thread Randal L. Schwartz
> "Nick" == Nick Transier <[EMAIL PROTECTED]> writes: Nick> Given this is my definition for self in some new constructor: Nick> sub new { Nick>$self { Nick> Next => @[Max_Level], Nick>} Nick> } Nick> First, is this the proper way to have Next be a reference to a

Re: fork .. regex ... etc..

2001-06-20 Thread Abdulaziz Ghuloum
Hello Ron and everybody on this list. In order to find the best way to complete the task the fastest way, you need to first analyse your system and how it's going to react to your algorithm. Basically your task can be split into 2 parts, one IO intensive part (reading the files) and one CPU inte

regex

2001-06-20 Thread Yacketta, Ronald
Folks, I have been looking for a little regex that would remove NULL (blank) lines from input. I have a little script that parses the output of timex (unix), unfortuanly the timex output is prepended with a blank line and appended with a blank line as such (timex ps -ef > /dev/nul) 2>&1 [begin

Re: $self def

2001-06-20 Thread Nick Transier
So then would I access the nth element by @{$self->{Next}}[n] ?? >From: [EMAIL PROTECTED] (Randal L. Schwartz) >To: "Nick Transier" <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED] >Subject: Re: $self def >Date: 20 Jun 2001 09:29:41 -0700 > > > "Nick" == Nick Transier <[EMAIL PROTECTED]> writes:

RE: $self def

2001-06-20 Thread Nick Transier
You are saying I cannot set the size of an array? I understand that you do not have to, but I need to in this case so that my iteration loops work correctly. >From: John Edwards <[EMAIL PROTECTED]> >To: 'Nick Transier' <[EMAIL PROTECTED]>, [EMAIL PROTECTED] >Subject: RE: $self def >Date: Wed,

Re: regex

2001-06-20 Thread Abdulaziz Ghuloum
Hello Say you obtained the output using the backticks: $str = `(timex ps -ef > /dev/nul) 2>&1`; then just $str =~ s/^\s+//; # remove the first line %timex = split(/\s+/, $str); print "$_: $timex{$_}\n" for keys %timex; will output: real: 0.00 user: 0.00 sys: 0.00 (order is not preserved, but

Re: $self def

2001-06-20 Thread Randal L. Schwartz
> "Nick" == Nick Transier <[EMAIL PROTECTED]> writes: Nick> So then would I access the nth element by Nick> @{$self->{Next}}[n] ?? Uh, no. That looks like @foo[3], which works for some broken values of "works". You want $foo[3], so to backtrace that, use ${$self->{Next}}[$n], also written

RE: $self def

2001-06-20 Thread Brett W. McCoy
On Wed, 20 Jun 2001, Nick Transier wrote: > You are saying I cannot set the size of an array? I understand that you do > not have to, but I need to in this case so that my iteration loops work > correctly. No you don't: foreach $i (0..@array) { print "$array[$i]\n"; } @array used in a

Re: xml problem

2001-06-20 Thread Chas Owens
> > Not withstanding my other comment, this code is also inefficient, > both tactically and strategically. I know it was horrendous code, it was just the first thing that popped into my head. After I had it working I was going to make it more efficient. > > Take for example the string "\200a

IPC::Open3

2001-06-20 Thread Paul Burkett
As a last ditch effort to get this serial device to write I found a Perl module called "IPC::Open3" it seems to have the ability to write to a serial device. Does any body have any experience with it? I read the documentation on CPAN.org's site numerous times but kept on asking myself "Duh, what?"

Re: $self def

2001-06-20 Thread Brett W. McCoy
On 20 Jun 2001, Randal L. Schwartz wrote: > The problem with references is that they have a very hard to explain > but completely intuitive interface. :) Gee, just like pointers in C! :-) -- Brett http://www.chapelperilous.net/btfwk/ --

Re: regex

2001-06-20 Thread Peter Scott
At 12:33 PM 6/20/01 -0400, Yacketta, Ronald wrote: >Folks, > >I have been looking for a little regex that would remove NULL (blank) lines >from input. >I have a little script that parses the output of timex (unix), unfortuanly >the timex output >is prepended with a blank line and appended with a b

RE: regex

2001-06-20 Thread Yacketta, Ronald
> $str =~ s/^\s+//; # remove the first line odd! this results in Use of uninitialized value at ./beta.pl line 58. Use of uninitialized value at ./beta.pl line 58. => Use of uninitialized value at ./beta.pl line 59. Use of uninitialized value at ./beta.pl line 59. real => 0.06 user => 0.04 sys

RE: regex

2001-06-20 Thread Yacketta, Ronald
> my $timex = `(timex ps -ef > /dev/null) 2>&1`; # /dev/null > has 2 ells on > my system > $timex =~ tr/\n//s; # Embedded and trailing blank lines > $timex =~ s/^\n//;# Leading blank line @oratime = qx((timex ps -ef > /dev/null) 2>&1 ); foreach my $holder (@oratime) {

Updating Terminal Server Profile Paths in User's NT Account Properties with Perl...

2001-06-20 Thread Hunt, Robert (LNG)
Does anyone know of a way to modify the Terminal Server Profile Path property of an NT account with Perl? The only way to modify this property from a command line that I have found so far is with tsprof.exe which is included with NT4 TSE and W2K. So, I could use a Perl script to build a .cmd fil

Re: $self def

2001-06-20 Thread Randal L. Schwartz
> "Brett" == Brett W McCoy <[EMAIL PROTECTED]> writes: Brett> On Wed, 20 Jun 2001, Nick Transier wrote: >> You are saying I cannot set the size of an array? I understand that you do >> not have to, but I need to in this case so that my iteration loops work >> correctly. Brett> No you don't:

RE: regex

2001-06-20 Thread Peter Scott
At 01:10 PM 6/20/01 -0400, Yacketta, Ronald wrote: > > my $timex = `(timex ps -ef > /dev/null) 2>&1`; # /dev/null > > has 2 ells on > > my system > > $timex =~ tr/\n//s; # Embedded and trailing blank lines > > $timex =~ s/^\n//;# Leading blank line > > @oratime = qx((timex ps -ef >

Re: Newbie question about running programs from the command line.

2001-06-20 Thread Tim Musson
Hey SAWMaster, Wednesday, June 20, 2001, 12:10:49 PM, you wrote: S> Hi group. S> Short 'n sweet question. Is there a way to run perl programs from S> the command line without having to precede usage with "perl" I see you are running M$ Win, but which version? What Perl are you running? I have

Re: IPC::Open3

2001-06-20 Thread Michael Fowler
On Wed, Jun 20, 2001 at 09:59:38AM -0700, Paul Burkett wrote: > As a last ditch effort to get this serial device to > write I found a Perl module called "IPC::Open3" it > seems to have the ability to write to a serial device. I'm not sure where you got this idea. IPC::Open3 is for reading and wr

Re: IPC::Open3

2001-06-20 Thread Paul Burkett
heh, thanks that might explain why it is working, I'm just using last ditch efforts to get this thing to work. He do you or anybody know of a program like TIP (creates a terminal connection to a remote host) that will work in Perl, right now all I get is "tip:must be interactive", thanks. > On We

Re: IPC::Open3

2001-06-20 Thread Michael Fowler
On Wed, Jun 20, 2001 at 11:06:19AM -0700, Paul Burkett wrote: > He do you or anybody know of a program like TIP > (creates a terminal connection to a remote host) that > will work in Perl, right now all I get is "tip:must be > interactive", thanks. What's giving you this error message? If you're

Re: IPC::Open3

2001-06-20 Thread Paul Burkett
Basically I'm suppose to be able to change the cameras which are displayed on the webpage. Right now I can change the cameras displayed on the webpage by accessing Tip and typing in a command like '@01' (any value through @01-@16) also you can type in '@22' (any value through @22-@44) and it will

Re: fork .. regex ... etc..

2001-06-20 Thread Karthik Krishnamurthy
On Wed, Jun 20, 2001 at 03:01:00PM -0500, Abdulaziz Ghuloum wrote: > Hello Ron and everybody on this list. > > In order to find the best way to complete the task the fastest way, you need to > first analyse your system and how it's going to react to your algorithm. > Basically your task can be spl

I feel like an idiot...

2001-06-20 Thread Tom Yarrish
Hey all, Well, the subject says it all. Four days removed from a Perl class, and I feel like I'm forgetting everything (guess that's what happens when you don't take Randal's class ;p). Anyway, here's what I'm trying to do. I have a file that I'm reading into the program with an open command. E

Re: IPC::Open3

2001-06-20 Thread Michael Fowler
On Wed, Jun 20, 2001 at 11:26:32AM -0700, Paul Burkett wrote: > Basically I'm suppose to be able to change the cameras > which are displayed on the webpage. Right now I can > change the cameras displayed on the webpage by > accessing Tip and typing in a command like '@01' (any > value through @01-

Re: I feel like an idiot...

2001-06-20 Thread Chris Garringer
Try $item=~/^\d{3}/; Chris D. Garringer LAN/WAN Manager Master Certified Netware Engineer Microsoft Certified Systems Engineer Certified Solaris Administrator Red Hat Certified Engineer [EMAIL PROTECTED] fax 713-896-5266 >>> Tom Yarrish <[EMAIL PROTECTED]> 06/20/01 01:51PM >>> Hey all, Well, th

Re: file tests

2001-06-20 Thread rob chanter
On Tue, Jun 19, 2001 at 03:41:40PM -0500, Jeff Wagg wrote: > > Hi, > I was just wondering if there were any file test operators (or > modules containing these operators) which tested files for their type. For > example, is there a way to test a file to see whether or not it's in FITS > form

RE: $self def

2001-06-20 Thread John Edwards
Are you trying to use a hash?? --- @myArray = qw(one two three four); &new; sub new { $self{'Next'} = \@myArray; } print "Element 0 is $self{'Next'}->[0]\n"; --- You can't specifiy the size of the array, it's dynamic. Just enter your data into the array and it will change size accordi

need code

2001-06-20 Thread Alen Sarkinovic
Hi Can anybody send me code of perl that will take input from web and execute Unix command ,I mean SYSTEM(/bin/somecommand $variable) I have try everything but still not able to execute from web ,everything goes fine from command line :perl -T script.pl variable=blabla

Re: need code

2001-06-20 Thread Eduard Grinvald
For god's sake, nobody reply :) - Original Message - From: "Alen Sarkinovic" <[EMAIL PROTECTED]> Date: Wednesday, June 20, 2001 3:11 pm Subject: need code > > > > Hi > Can anybody send me code of perl that will take input from web > and execute Unix command ,I mean SYSTEM(/bin/some

Re: I feel like an idiot...

2001-06-20 Thread Eric J. Wisti
So, is this what you're looking for: #!/usr/local/bin/perl use warnings; use strict; my $item; my %hash; #open(FILE, "file") or die "Can't open file: $!\n"; while () { # using builtin data # match line of at least 3 digits at beginning of line /^(\d{3})/; # or more visually $_ =~ /

Shell Program

2001-06-20 Thread Nick Transier
I have written a module I want to test in a shell program, how do I load the module in another perl file to test the methods of the module's packages? -Nick _ Get your FREE download of MSN Explorer at http://explorer.msn.com

  1   2   >