Perl test failed.

2001-10-19 Thread Bebe
Hi all, my name is Giuliano and I write from Italy. My system is Caldera eServer 2.3 2.4.12+grsecurity, Perl-5.6.1 I write because I have a problem with Perl. When I wirte "make test" I have 4 scripts failed: /lib/dirhand FAILED test 3 /lib/glob-basic FAILED test 2 /lib/io-dir FAILED tes

passing variables

2001-10-19 Thread Natalia Vasilchenko
Hello, all! I have some variables defined in file $user_ip = $ENV{'REMOTE_ADDR'}; $user_name = $ENV{'AUTH_USER'}; . Now I want to use these values in other files. unless ($user_ip =~ /^10\./)... # #etc. What should I do? use 'require userinfo.pl;' or use 'pa

Re: passing variables

2001-10-19 Thread Martin
the best way is to bild a modul and include it with use dont forget to export the vars. Take a look on exporter modul hope it helps Martin Natalia Vasilchenko schrieb: > > Hello, all! > > I have some variables defined in file > > > > $user_ip = $ENV{'REMOTE_ADDR'}; > > $user_name = $EN

regexp question

2001-10-19 Thread birgit kellner
my $header = "Joe DoeThe book I wrote yesterday"; my $title; if ($header =~ /(^\S.+)()(\S.+$)/m) { $title = "$1: $3";} print "$title\n"; Is there a shorter, simpler, more efficient way to do this? I still need $header later on as it is. I quite often have to copy the value of a variable and the

Re: Select all files in a dir for processing?

2001-10-19 Thread Andrea Holstein
Bill Akins wrote: > > I need to read in every file in a dir into a new file. I can do it like > below if I know the file names, but how can I specify *.CSV? Actually there > will be only the data files I need to read in the dir so *.* would work as > well. Perhaps I should also mention this is

Re: regexp question

2001-10-19 Thread Martin
try this: my $title =~ s// /i; if ($header =~ /(^\S.+)()(\S.+$)/m) { $header =~ s///i; } print $header; hope it helps martin birgit kellner wrote: > my $header = "Joe DoeThe book I wrote yesterday"; > my $title; > if ($header =~ /(^\S.+)()(\S.+$)/m) { $title = "$1: $3

accessing environment variables

2001-10-19 Thread Greg . Froese
How do I access Windows environment vars? I want to be able to test whether I'm in Windows or Linux, and this seems like a good way to do it. If there is an easier/better way, I'm all ears. Thanks Greg

Re: executing an application within a perl script

2001-10-19 Thread phumes1
Hi, Is there a way to load a application from a Perl script. Let's say wordpad.exe in Windows? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: accessing environment variables

2001-10-19 Thread HOLLAND-MORITZ,MARCUS (A-hsgGermany,ex1)
| If there is an easier/better way, I'm all ears. Use the variable $^O which contains the name of the operating system. It's "MSWin32" for Windows, for example. if( $^O eq 'MSWin32' ) { # ... } else { # ... } Hope this helps. -- Marcus | -Original Message- | From: [EM

SGML Parser

2001-10-19 Thread RAHUL SHARMA
Hi, I want to parse SGML documents on the basis of DTD(Document Type Definition). Anyone knows about usage of SGML Parser and validation on the basis of DTD..?? Thanks, Rahul. - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 19, 2001 5:45 PM

FW: What is Auto-Vivification

2001-10-19 Thread Kipp, James
> #Please note that I am trying to access a new non-existing Autovivication does not happen when you are trying to access the non existing key, it happens when you are trying to assing it. So if you have: $href->{foo} and you do something like print $href->{fou} it will then create this ent

RE: return a hash key

2001-10-19 Thread AL H
>Is this really your data model? Why all the nested >levels of hashes? > Is there another alternative to access data from a database (cvs or sql) besides using hashes and arrays without nesting? Al >From: Bob Showalter <[EMAIL PROTECTED]> >To: 'AL H' <[EMAIL PROTECTED]>, [EMAIL PROTECTED] >Su

Re: FW: What is Auto-Vivification

2001-10-19 Thread RaFaL Pocztarski
"Kipp, James" wrote: > Autovivication does not happen when you are trying to access the non > existing key, it happens when you are trying to assing it. So if you have: > $href->{foo} > and you do something like > print $href->{fou} > it will then create this entry which can be detrimental. No.

Re: accessing environment variables

2001-10-19 Thread _brian_d_foy
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Greg Froese) wrote: > I want to be able to test whether I'm in Windows or Linux, and this seems > like a good way to do it. you want $^O, not an environment variable. take a look inside CGI.pm for some example code. :) -- brian d foy <[EMAI

Re: accessing environment variables

2001-10-19 Thread Greg . Froese
Thanks Brian and Marcus. $^O is exactly what I needed. _brian_d_foy <[EMAIL PROTECTED]> 10/19/2001 08:44 AM To: [EMAIL PROTECTED] cc: Subject:Re: accessing environment variables In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Greg Froese) wrote:

CPAN repository

2001-10-19 Thread Mike Singleton
** Reply Requested by 10/20/2001 (Saturday) ** I have mirrored CPAN on my local ftp server... how would I congifure the shell in CPAN to look at this new repository. We are behind a firewall at work and only some manchines can get out to the Internet, so I just mirrored it locally. === Mike S

Very newbie question

2001-10-19 Thread "José A. Ferrer"
Hi, Where can I find a list of all embedded default perl variables, like $^0, $_, and so ? T.I.A. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Very newbie question

2001-10-19 Thread Gary L. Armstrong
I have been using the indexes of various O'Reilly books. I also sometimes go looking on the web at perldoc.com for stuff. Hope that helps. -=GLA=- -Original Message- From: José A. Ferrer [mailto:[EMAIL PROTECTED]] Sent: Friday, October 19, 2001 11:51 AM To: [EMAIL PROTECTED] Subject: Ve

RE: Very newbie question

2001-10-19 Thread Heely, Paul
Try the perlvar documentation: perldoc perlvar --Paul > -Original Message- > From: Gary L. Armstrong [mailto:[EMAIL PROTECTED]] > Sent: Friday, October 19, 2001 12:18 PM > To: 'Beginners@Perl. Org'; José A. Ferrer > Subject: RE: Very newbie question > > > I have been using the indexes

Re: Very newbie question

2001-10-19 Thread register
you can also do perldoc perlvar On Fri, Oct 19, 2001 at 05:50:48PM +0200, "Jos? A. Ferrer" shaped the electrons to read: > > Hi, > > Where can I find a list of all embedded default perl variables, like $^0, > $_, and so ? > > T.I.A. > > > -- > To unsubscribe, e-mail: [EMAIL PROTE

Very newbie question #2

2001-10-19 Thread "José A. Ferrer"
Hi again, I have one program in linux that outputs DOS-like text format (with CR+LF) therefore when edited with "vi" a lot of ^M appeared. How can I filter this with perl ? T.I.A. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Very newbie question

2001-10-19 Thread RaFaL Pocztarski
"Heely, Paul" wrote: > Try the perlvar documentation: > perldoc perlvar Or the same on the web: http://www.perldoc.com/perl5.6.1/pod/perlvar.html - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Very newbie question

2001-10-19 Thread Brett W. McCoy
On Fri, 19 Oct 2001, "José A. Ferrer" wrote: > Where can I find a list of all embedded default perl variables, like $^0, > $_, and so ? perldoc perlvar -- Brett http://www.chapelperilous.net/ -

Re: SGML Parser

2001-10-19 Thread Peter Scott
At 06:02 PM 10/19/01 +0530, RAHUL SHARMA wrote: >I want to parse SGML documents on the basis of DTD(Document Type >Definition). >Anyone knows about usage of SGML Parser and validation on the basis of >DTD..?? Been a while since I've done it, but you don't even need Perl to do this, just James C

Re: Very newbie question #2

2001-10-19 Thread RaFaL Pocztarski
"José A. Ferrer" wrote: > I have one program in linux that outputs DOS-like text format (with CR+LF) > therefore when edited with "vi" a lot of ^M appeared. > How can I filter this with perl ? Few days ago someone asked about it on [EMAIL PROTECTED], and that's what I wrote: >> And for conversi

Re: Very newbie question #1 and #2

2001-10-19 Thread "José A. Ferrer"
It worked, thanks to all ! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: regexp question

2001-10-19 Thread Jeff 'japhy' Pinyan
On Oct 19, birgit kellner said: >my $header = "Joe DoeThe book I wrote yesterday"; >my $title; >if ($header =~ /(^\S.+)()(\S.+$)/m) { $title = "$1: $3";} >print "$title\n"; > >Is there a shorter, simpler, more efficient way to do this? I still need >$header later on as it is. You could do: (

simple sockets

2001-10-19 Thread zentara
Hi, I found this simple example of sockets in a tutorial and I want to make it work. It seems to work, but I get no output at the receive end. The problem seems to revolve around the receiver's "print $_" statement. I run RECEIVE first, and it starts with no errors and waits. Then I run SEND and i

Re: regexp question

2001-10-19 Thread birgit kellner
--On Freitag, 19. Oktober 2001 12:49 -0400 Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> wrote: > On Oct 19, birgit kellner said: > >> my $header = "Joe DoeThe book I wrote yesterday"; >> my $title; >> if ($header =~ /(^\S.+)()(\S.+$)/m) { $title = "$1: $3";} >> print "$title\n"; >> >> Is there a shor

Re: regexp question

2001-10-19 Thread Jeff 'japhy' Pinyan
On Oct 19, birgit kellner said: >> ($title = $header) =~ s//: /; > >I had thought of that, but believed that it will also perform the >substitution on $header. I just tested it, and that doesn't seem to be the >case. If that's true, there's the solution to my problem. Doing ($x = $y) =~ s/fo

Content Type

2001-10-19 Thread SAWMaster
Hello, I have a script that is acting funny. I have this line in it: $addtocart_co->header(-cookie=>$pid_cookie); Does that line not handle the content type as well? I get "premature end of script headers" with just that. But if I add this line: print "Content-type: text/html\n\n"; It works

Re: Content Type

2001-10-19 Thread Brett W. McCoy
On Fri, 19 Oct 2001, SAWMaster wrote: > Hello, I have a script that is acting funny. > > I have this line in it: > > $addtocart_co->header(-cookie=>$pid_cookie); > > Does that line not handle the content type as well? It does handle it. Do you have start_html after it? > I get "premature end o

Re: simple sockets

2001-10-19 Thread Michael Fowler
On Fri, Oct 19, 2001 at 12:54:07PM -0400, zentara wrote: > ###RECEIVE: > #!/usr/bin/perl -w > use IO::Socket; > my $sock = new IO::Socket::INET ( > LocalHost => 'localhost', > LocalPort => '7070', > Proto => 'tcp', > Listen => 1, > Reuse => 1,

Re: Content Type

2001-10-19 Thread Michael Fowler
On Fri, Oct 19, 2001 at 12:11:31PM -0500, SAWMaster wrote: > $addtocart_co->header(-cookie=>$pid_cookie); > > Does that line not handle the content type as well? Yes. You did print out the return value, didn't you? The header method of CGI.pm doesn't print the header out, it returns it; you ha

FORK

2001-10-19 Thread nafiseh saberi
hi all...do you know about  fork function in perl?and do it have any relation with operatingsystem??? _best regrds.nafiseh  .  saberi.Iran   .   notes    .When you've got a Chautauqua in your head, it's extremely hard not to inflict it on inno

Re: FORK

2001-10-19 Thread RaFaL Pocztarski
nafiseh saberi wrote: > hi all... > do you know about fork function in perl? > and do it have any relation with operating > system??? fork() is a standard Unix system function, but on systems without native fork(), perl can emulate it (however I've never used perl on any non-Unix system, so I c

RE: FORK

2001-10-19 Thread Kipp, James
any reason why you are sending emails to the list in html ?? -Original Message- From: nafiseh saberi [mailto:[EMAIL PROTECTED]] Sent: Friday, October 19, 2001 9:03 AM To: perl Subject: FORK hi all... do you know about fork function in perl? and do it have any relation with operating s

Parsing question

2001-10-19 Thread Anderson, Carlin
We are integrating with the Yahoo storefront for some customers, and I am having a problem accessing some of the data elements within the data stream. This is a dump of the raw information dumped by my program: Bill-Address1 = 5575 North Service Road Bill-Address2 = 4th Floor Bill-City = Burling

Regular Expression Help

2001-10-19 Thread Gross, Stephan
I'm matching a SQL date like this: $ftime =~ /(\d+)-(\d+)-(\d+)\s+(\d+):(\d+):(\d+)/; If $ftime is "2001-05-13 11:53:00", then $1 is "2001", $2 is "05", etc. However, I also want to match if the user types in a partial string. For example, if $ftime is "2001-12-18", I want $1, $2 and $3 to

Accounting Software

2001-10-19 Thread Joe Echavarria
Hi there, I am looking for a complete Perl/mySQL or flat file accounting software. The software must consider all the aspect of accounting. Where can i find one ?, which one any of you recommend me ? It could be free or not. thanks, Joe _

Accounting Software

2001-10-19 Thread Joe Echavarria
Hi there, I am looking for a complete Perl/mySQL or flat file accounting software. The software must consider all the aspect of accounting. Where can i find one ?, which one any of you recommend me ? It could be free or not. thanks, Joe _

Re: Accounting Software

2001-10-19 Thread Scott Taylor
At 12:17 PM 10/19/01, Joe Echavarria wrote: >Hi there, > >I am looking for a complete Perl/mySQL or flat file >accounting software. The software must consider all >the aspect of accounting. > >Where can i find one ?, which one any of you >recommend me ? http://www.sql-ledger.org/ Kinda ni

File::Path oddity

2001-10-19 Thread birgit kellner
use File::Path; my $newdir = "testdirectory"; mkpath(["$newdir"]); According to the File::Path description, creating a directory should set its permissions to 777 per default. However, I find that the above code creates "testdirectory" with 755. Even if I set permissions to 777, using the follow

Re: File::Path oddity

2001-10-19 Thread Luke Bakken
is your umask 022? On Fri, 19 Oct 2001, birgit kellner wrote: > use File::Path; > my $newdir = "testdirectory"; > mkpath(["$newdir"]); > > According to the File::Path description, creating a directory should set > its permissions to 777 per default. > However, I find that the above code creates

RE: Parsing question

2001-10-19 Thread Bob Showalter
> -Original Message- > From: Anderson, Carlin [mailto:[EMAIL PROTECTED]] > Sent: Friday, October 19, 2001 2:53 PM > To: '[EMAIL PROTECTED]' > Subject: Parsing question > > > We are integrating with the Yahoo storefront for some > customers, and I am > having a problem accessing some of

RE: File::Path oddity

2001-10-19 Thread Bob Showalter
> -Original Message- > From: birgit kellner [mailto:[EMAIL PROTECTED]] > Sent: Friday, October 19, 2001 3:20 PM > To: [EMAIL PROTECTED] > Subject: File::Path oddity > > > use File::Path; > my $newdir = "testdirectory"; > mkpath(["$newdir"]); > > According to the File::Path description,

Re: Content Type

2001-10-19 Thread SAWMaster
> Yes. You did print out the return value, didn't you? The header method of > CGI.pm doesn't print the header out, it returns it; you have to print it out > yourself. No I didn't, I did not know I needed to. It works great now thanks AGAIN! -Dave -- To unsubscribe, e-mail: [EMAIL PROTECTED

egrep and $ftp->cmd

2001-10-19 Thread P lerenard
Hi, I try to get one line from a file on another server. I tried with Net::FTP $ftp = Net::FTP->new("server"); $ftp->login($user,$pass); $ftp->cwd("dir"); @zone = $ftp->cmd("egrp -n 'zone \"try.com' file"); $ftp->quit; print @zone; I don't know if ->cmd support this command, it doesn't work with

Re: CPAN repository

2001-10-19 Thread Elaine -HFB- Ashton
Mike Singleton [[EMAIL PROTECTED]] quoth: *>** Reply Requested by 10/20/2001 (Saturday) ** *> *>I have mirrored CPAN on my local ftp server... how would I congifure the shell in CPAN to look at this new repository. We are behind a firewall at work and only some manchines can get out to the Inter

Call Center Software

2001-10-19 Thread Joe Echavarria
Hi there, Does anyone of you know of a Call Center Software written perl. A complex one that can handle call statistic and all the things involve in a call center. Thanks, Joe __ Do You Yahoo!? Make a great connection at Yahoo! Personals.

Re: egrep and $ftp->cmd

2001-10-19 Thread Michael Fowler
On Fri, Oct 19, 2001 at 08:51:45PM +, P lerenard wrote: > I try to get one line from a file on another server. > I tried with Net::FTP > $ftp = Net::FTP->new("server"); > $ftp->login($user,$pass); > $ftp->cwd("dir"); > @zone = $ftp->cmd("egrp -n 'zone \"try.com' file"); > $ftp->quit; > print @

using global variables in other files

2001-10-19 Thread Васильченко Наталья Анатольевна
Hello, all! I have some variables defined in file $user_ip = $ENV{'REMOTE_ADDR'}; $user_name = $ENV{'AUTH_USER'}; . Now I want to use these values in other files. unless ($user_ip =~ /^10\./)... # #etc. What should I do? use 'require userinfo.pl;' or use 'package' or some

tainting problem

2001-10-19 Thread Christian Kasper
Hello, I call a perl program from a script with s bit set on user and group. The perl interpreter told me, that my require <"xxx.pl";>statement is insecure. I know, that the s-bit switch on the -T (tainting) option. How can i solve this problem ?? Thank you Christian

RE: FORK

2001-10-19 Thread Jeff Crawford
Not sure if this is useful. But I ran across this on www.perlmonks.com: http://www.perlmonks.com/index.pl?node_id=1044&next=90, FWIW. -Original Message- From: Kipp, James [mailto:[EMAIL PROTECTED]] Sent: Friday, October 19, 2001 12:14 PM To: 'nafiseh saberi'; perl Subject: RE: FORK any

Re: File::Path oddity

2001-10-19 Thread birgit kellner
--On Freitag, 19. Oktober 2001 12:26 -0700 Luke Bakken <[EMAIL PROTECTED]> wrote: > is your umask 022? > > exactly. Thanks to you and Bob for the hint, Birgit -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Win32::Setupsup -Can Mouse action be sent to a window as SendKeys sends some key strokes to a window

2001-10-19 Thread Carl Jolley
On Fri, 19 Oct 2001, Abhra Debroy wrote: > Thank u Carl for the reply ! But what's the solution for the application > those do not support OLE . > If you have a Win32 OS then you have OLE. AutoIt will also run standalone with its own scripting language. Perhaps you misunderstand how AutoIt work

RE: Very Urgent...

2001-10-19 Thread Dave Newton
> Where can I get more information on How to test(QA) Website > or client server application using Perl-win32::GuiTest. My understanding was that win32::guitest was for testing windows applications, not websites? Dave -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

RE: Win32::Setupsup -Can Mouse action be sent to a window asSendKeys sends some key strokes to a wi

2001-10-19 Thread Greg Wardawy
>>> Abhra Debroy <[EMAIL PROTECTED]> 10/18/01 11:51PM >>> Thank u Carl for the reply ! But what's the solution for the application those do not support OLE . Abhra > -Original Message- > From: Carl Jolley [SMTP:[EMAIL PROTECTED]] > Sent: Thursday, October 18, 2001 10:51 PM > To: A

RE: Win32::Setupsup -Can Mouse action be sent to a windowasSendKeys sends some key strokes to a wi

2001-10-19 Thread Greg Wardawy
Oops, I forgot to include GroundControl's Mouse Commands Overview: Mouse commands are useful for activating dialog boxes, menus, and other visual control elements. You can use both left and right buttons. The following are for working with the buttons: These are used for moving the mouse aroun

Re: Regular Expression Help

2001-10-19 Thread Randal L. Schwartz
> "Stephan" == Stephan Gross <[EMAIL PROTECTED]> writes: Stephan> I'm matching a SQL date like this: Stephan>$ftime =~ /(\d+)-(\d+)-(\d+)\s+(\d+):(\d+):(\d+)/; Stephan> If $ftime is "2001-05-13 11:53:00", then $1 is "2001", $2 is "05", etc. Stephan> However, I also want to match if th