displaying info in HTML - all in one line....

2001-07-19 Thread Adam Mc Gregor
HI I am using cgi to display a text file in an html table on a web site. This is easy when it is all in a line separated by spaces, each new row in the table uses a new line of data in the text file. What I am having trouble with is when all the data is in one line, one below the other:

TkPerl on win32

2001-07-19 Thread raf
Hi, i installed the Tk module for Perl (win32) via ppm (thanks Brett), but now when i try a simple programm (a simple window) i get following message in return : can´t locate loadable object for module Tk::event in @INC (@INC contains c:/perl/lib c:/perl/site/lib) what can i do? how do i add

RE: Packages, classes, cgi

2001-07-19 Thread Rob Sexstone
Hi Shawn, I'm currently working through the same learning curve on OOP in perl and bought a copy of 'Perl Developer's Guide' by Ed Peschko and Michele deWolfe. I'm finding the tutorial style suits my beginners/intermediate level, and it also comes with a CD full of code examples. (I plan to

automating database dumps

2001-07-19 Thread Pavan Kumar Hotha
Hi All, I am totally new to perl and I want to automate a task in sybase, I need to take backup of 30 databases on a sybase server and compress them and store them in any of the local drives, so that I can take a backup of the same, can any one kindly suggest me how to automate this.

how do you tell....

2001-07-19 Thread Sally
Hi all, are there any signs to look out for when trying to determine if a script was intended for use on a unix server or a WinNT server? I have a script that I found on the web and it will be hosted on a WinNT server, but I don't know what to look for to see if it'll work. Thanks, Sally --

RE: how do you tell....

2001-07-19 Thread Blader Robert G DLVA
I would think very first line could be a clue: #!/usr/bin/perl - or similar - probably Unix # c:/winnt/system32/perl - or some such - probably Windows Rob -Original Message- From: Sally [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 6:56 AM To: perlcgi

Do I use fork() for this?

2001-07-19 Thread tommy
Hello all, I'm currently trying to put a little search engine together for a small web site, basically searching through a bunch of files for matching keywords. As I want a Progress Page while the script is doing its work, I show a page while the script is searching (had to use $| to achieve)

HELP--FW: displaying info in HTML - all in one line....

2001-07-19 Thread Adam Mc Gregor
any one got any input for me? thanks Regards Adam McGregor [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Affinity Internet (Pty) Ltd -Original Message- From: Adam Mc Gregor Sent: 19 July 2001 09:56 To: [EMAIL PROTECTED] Subject: displaying info in HTML - all in one

Re: Do I use fork() for this?

2001-07-19 Thread Pierre Smolarek
not really the best way in my opinion what you could do is use two scripts. first script is the cgi, it does what needs to be done to get the data and then pipes it to a deamon script that forks off children for each proccess. The cgi then askes the deamon on the status of its child as

Re: Do I use fork() for this?

2001-07-19 Thread Pierre Smolarek
:) the daemon is server side and runs in the background. So unless you have shell, you can't start it off that easily. What you could use BUT IT IS EXPERIMENTAL is thread. check it out in perldoc. Its really the easy way to do what you do.. Threads will handle all the forking and communication

Re: Do I use fork() for this?

2001-07-19 Thread tommy
I'm not sure exactly what 'auto reap' means? Not being a Unix-ian, coming from DOSland, makes my life quite difficult when it comes to understanding Unix. Cheers again, TommyGun. www.y2kdiary.com -Original Message- From : Pierre Smolarek [EMAIL PROTECTED] To : [EMAIL PROTECTED] CC :

Re: Do I use fork() for this?

2001-07-19 Thread Pierre Smolarek
i recommend you buy the Perl Cookbook by o'reily there is a great fork section - Original Message - From: [EMAIL PROTECTED] To: pierre smolarek [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, July 19, 2001 2:43 PM Subject: Re: Do I use fork() for this? I'm not sure exactly

RE: passing form values to another Perl script

2001-07-19 Thread Rachel Coleman
On Wed, 18 Jul 2001 [EMAIL PROTECTED] wrote: So how exactly do I add the error checking in there? Hints anyone since I am very new to this whole process. http://gunther.web66.com/FAQS/taintmode.html has some good clear explanations. I don't know that's what he asked about... he said he

Re: Running perl scripts on other machines and getting feedback

2001-07-19 Thread Rachel Coleman
On Wed, 18 Jul 2001, Westlake, Andy wrote: I have written a short perl script to report disk usage on our various systems at our site. What I would like to do is run the script from a page on our intranet and get the feedback back. Now I can do this using rsh but I am sure there is a way of

Re: Do I use fork() for this?

2001-07-19 Thread Mel Matsuoka
At 09:52 AM 07/19/2001 -0700, Randal L. Schwartz wrote: Type search in progress into http://www.stonehenge.com/perl/googlecolumnsearch and see the column I've already written on it. In fact, keep that URL bookmarked, because anytime you have *any* Perl problem, I've probably already written a

error info...

2001-07-19 Thread bc
does anyone know of a site that lets you use free space to learn perl/cgi? my current one, netfirms, does, but when i get errors, all it prints to the browser is it could be a programing error or a syntax error I used to use VBScript, and it, when you did an error, it at least told the line

Re: error info...

2001-07-19 Thread Mel Matsuoka
At 02:54 PM 07/19/2001 -0400, bc wrote: does anyone know of a site that lets you use free space to learn perl/cgi? my current one, netfirms, does, but when i get errors, all it prints to the browser is it could be a programing error or a syntax error I used to use VBScript, and it, when

Re: error info...

2001-07-19 Thread bc
i'm using that... no luck though... - Original Message - From: Mel Matsuoka [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 19, 2001 9:01 AM Subject: Re: error info... At 02:54 PM 07/19/2001 -0400, bc wrote: does anyone know of a site that lets you use free space to

CGI script to ftp from client to webserver

2001-07-19 Thread Kerns, Justin
I am trying to write a script that will allow a user to upload a file (any size) to my webserver (W2K). Can anyone offer any good suggestions for starting off? Thanks in advance. JK... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: CGI script to ftp from client to webserver

2001-07-19 Thread Bradley M. Handy
Take a look at the Documentation for the CGI.pm module at: http://search.cpan.org/search?module=CGI or presuming that the perl location is in your PATH environment variable you can do this: perldoc CGI Brad Handy --www.jack-of-all-trades.net [EMAIL PROTECTED] -Original

BEGIN blocks

2001-07-19 Thread Miles Sapp
Hi, Can someone please explain what a BEGIN block does? I see from my books and online documentation that BEGIN blocks are run at compile time and are run only once, but I'm not sure how that's different from any other perl code that's not in a loop. Also, in my test script (below) the block

Re: BEGIN blocks

2001-07-19 Thread Brett W. McCoy
On Thu, 19 Jul 2001, Miles Sapp wrote: Can someone please explain what a BEGIN block does? I see from my books and online documentation that BEGIN blocks are run at compile time and are run only once, but I'm not sure how that's different from any other perl code that's not in a loop.

Re: error info...

2001-07-19 Thread bc
if i use wordpad, in windows, instead of notepad, which i was told b/c of this reason, what do i save the script file as: the choices are: rich text format (RTF) unicode text document text document - MS DOS format text document and word for windows 6.0 any ideas? - Original Message -

Re: error info...

2001-07-19 Thread fliptop
bc wrote: if i use wordpad, in windows, instead of notepad, which i was told b/c of this reason, what do i save the script file as: the choices are: save it as a text file, but ftp it as an ascii (not a binary) file. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: error info...

2001-07-19 Thread Mel Matsuoka
At 05:13 PM 07/19/2001 -0400, bc wrote: if i use wordpad, in windows, instead of notepad, which i was told b/c of this reason, what do i save the script file as: the choices are: Arghwhoever told you to use Wordpad without qualifying the RIGHT way to save out of Wordpad needs to be

Re: error info...

2001-07-19 Thread bc
thanks a lot, i used ulta in my asp mess, i liked it... :) - Original Message - From: Mel Matsuoka [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 19, 2001 11:21 AM Subject: Re: error info... At 05:13 PM 07/19/2001 -0400, bc wrote: if i use wordpad, in windows, instead

RE: error info...

2001-07-19 Thread Tillema, Glenn
Jext is a great editor too, written entirely in java, and is free. http://www.jext.org cheers, Glenn Glenn Tillema [EMAIL PROTECTED] ADC Telecommunications, Inc. PO Box 1101, MS 508 Minneapolis, MN 55440-1101 Learn about ADC - The Broadband Company - www.adc.com

Re: error info...

2001-07-19 Thread Brett W. McCoy
On Thu, 19 Jul 2001, bc wrote: if i use wordpad, in windows, instead of notepad, which i was told b/c of this reason, what do i save the script file as: the choices are: rich text format (RTF) unicode text document text document - MS DOS format text document and word for windows 6.0

Re: error info...

2001-07-19 Thread Mel Matsuoka
At 05:17 PM 07/19/2001 -0400, bc wrote: here is the error: Execution of customgame.pl aborted due to compilation errors. Have you tried to run your script from the commandline using -w and 'use strict' ? I just did, and it spewed back a ton of syntax errors and other strict-related problems.

Re: error info...

2001-07-19 Thread fliptop
bc wrote: #!/usr/bin/perl -w use CGI::Carp qw(fatalsToBrowser); #howdy use CGI qw(param); you're not using strict. please do. } elseif ($name eq randal) { it should be elsif, not elseif. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: error info...

2001-07-19 Thread bc
thanks... :) - Original Message - From: Mel Matsuoka [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 19, 2001 11:27 AM Subject: Re: error info... At 05:17 PM 07/19/2001 -0400, bc wrote: here is the error: Execution of customgame.pl aborted due to compilation

Re: error info...

2001-07-19 Thread bc
thanks... :) - Original Message - From: fliptop [EMAIL PROTECTED] To: bc [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, July 19, 2001 5:26 PM Subject: Re: error info... bc wrote: #!/usr/bin/perl -w use CGI::Carp qw(fatalsToBrowser); #howdy use CGI qw(param);

Re: error info...

2001-07-19 Thread bc
now this??? Can't find string terminator end_of_page anywhere before EOF at customgame.pl line 27. came from: #!/usr/bin/perl -w use CGI::Carp qw(fatalsToBrowser); #howdy use CGI qw(param); printend_of_html_start; content-type: text/html htmlhead titlecustomgame/title /head body

Perl editors (WAS: Re: error info...)

2001-07-19 Thread Mel Matsuoka
At 05:32 PM 07/19/2001 -0400, Brett W. McCoy wrote: Better yet, get a programming editor like UltraEdit, emacs, Komodo, etc -- they are designed especially for programmers and have lots of nice little bells and whistles to help you, like color sytax highlighting, online help, debugging,

Re: error info...

2001-07-19 Thread Mel Matsuoka
At 05:36 PM 07/19/2001 -0400, bc wrote: now this??? Can't find string terminator end_of_page anywhere before EOF at customgame.pl line 27. Here-doc syntax is very touchy. The problem is that your heredoc terminator string is NOT on a line by itself. This means any whitespace after the

Re: error info...

2001-07-19 Thread bc
i though it was? - Original Message - From: Mel Matsuoka [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 19, 2001 11:37 AM Subject: Re: error info... At 05:36 PM 07/19/2001 -0400, bc wrote: now this??? Can't find string terminator end_of_page anywhere before EOF at

Re: error info...

2001-07-19 Thread Mel Matsuoka
quoting of replies reformatted I wrote: At 05:36 PM 07/19/2001 -0400, bc wrote: now this??? Can't find string terminator end_of_page anywhere before EOF at customgame.pl line 27. Here-doc syntax is very touchy. The problem is that your heredoc terminator string is NOT on a line by

new one...

2001-07-19 Thread bc
new error, darn, i wish the browser would print the errored line #, any ideas yall? Execution of customgame.pl aborted due to compilation errors. was the error... here was my page... #!/usr/bin/perl -w use CGI::Carp qw(fatalsToBrowser); #howdy use CGI qw(param); printend_of_html_start;

welp?

2001-07-19 Thread bc
this did not fix it, changing = to eq in my if statements...??? #!/usr/bin/perl -w use CGI::Carp qw(fatalsToBrowser); #howdy use CGI qw(param); printend_of_html_start; content-type: text/html htmlhead titlecustomgame/title /head body end_of_html_start $guess = param(guess); $name =

Hyperlink to act like submit button...

2001-07-19 Thread Daniel Falkenberg
List, I have a problem that I need a hyperlink to take me to a location still situated on my script but I need this hyperlink to be also able to pass on variables to the next sub. I can do this with radio buttons and checkboxes $variable = param('unique_id') HTML as follows... input

Re: welp?

2001-07-19 Thread bc
what is use strict for? - Original Message - From: Brett W. McCoy [EMAIL PROTECTED] To: bc [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; Mel Matsuoka [EMAIL PROTECTED] Sent: Thursday, July 19, 2001 6:29 PM Subject: Re: welp? On Thu, 19 Jul 2001, bc wrote: this did not fix it, changing =

Re: welp?

2001-07-19 Thread Brett W. McCoy
On Thu, 19 Jul 2001, bc wrote: what is use strict for? perldoc strict -- You should read this -- Brett http://www.chapelperilous.net/btfwk/ BARRY ... That was the most HEART-WARMING

Form data validation CGI / Perl / MS-FrontPage web page

2001-07-19 Thread Notabene
I would appreciate some help or pointers for the following CGI / Perl / MS-FrontPage 2000 form validation problem: I am writing an autoresponder which generates two e-mails: one to me, and a confirmation back to the sender. I have a form on an MS-FrontPage web page which collects initial user

RE: stupid question

2001-07-19 Thread Mark Saunders
Yes. But you could also telnet or ssh (secure shell connection) into the webserver if the host allows it, and execute scripts that way. But chances are you wouldn't do that. -Original Message- From: Tom Malone [mailto:[EMAIL PROTECTED]] Sent: Friday, July 20, 2001 12:04 AM To: Mark

FW: Hyperlink to act like submit button...

2001-07-19 Thread Daniel Falkenberg
Answer to my own question... :) (If any one is interested) sub first{ my $select = qq(a href=helpdesk.cgi?); $select .= qq(action=test_modifyunid=$entries-{unique_id}); $select .= qq( title=View Job); } sub second{ my $unid = param('unid'); print $unid; #This then prints

Can't display counter....

2001-07-19 Thread Baltazar Ruiz
Hi I'm trying to put a simple text counter with this simple script: **ScRiPtScRiPt**ScRiPt**ScRiPt**ScRiPt**ScRiPt**ScRiPt**ScRiPt**ScRiPt**ScRiPt**ScRiPt #!/usr/bin/perl print Content-type: text/plain, \n\n; $count_file = /usr/apache/html/ingersoll/counter/data/count.txt; if (open

RE: Removing spaces

2001-07-19 Thread Brian
This should do it for you: $sring =~ s/^ +| +$//; Brian Johnson Partner/Systems Administrator/Programmer Source1Hosting.tv, LLC (www.source1hosting.tv) Source1Results.com, LLC (www.source1results.com) I may be insane, but remember - The only difference between an insane man and a genius is his

Re: URL encoding and decoding in submitting form

2001-07-19 Thread Jos I. Boumans
1: Do NOT send 'high priority' mails to this list. Your problem isn't any more important, interesting or special then anyone else's here. It's also a recipe to get, at least myself, rather agitated. 2: there's a list specifically for cgi problems, as you can read on learn.perl.org I suggest you

Re:Parsing a file

2001-07-19 Thread Jorge Goncalvez
Hi , I wanted to parse the last line of a file c:\cygwin_syslog.txt and if it begins with : tftpd i want to draw a progress bar which is growing from 0 to 100, in a GUI. My code is: open SYSLOG,c:/cygwin_syslog.txt || die can't open: $!; while (SYSLOG) { chomp;

Re: Regex giving me fits!! :-(

2001-07-19 Thread insomniak
Hi, Not tested this but I think it 'should work. forgive me if I have made any goofs /DATE\s+[:]?\s+?(0?[1-9]|[123]\d|3[01])\/(0?[1-9]|1[120])\/(19\d\d|20\d\d|\d \d)/ $day = $1;# make sure days is not greater than 31 $month = $2;# make sure months not greater than 12 $year = $3;

install modules when user is not root

2001-07-19 Thread Rizwan
Hi! all, I am trying to install some of the CPAN modules ,like the b::graph module, but I am not able to because I dont have the root privilages. Specifically, can anybody help me use the b::graph module without root previleges. Rizwan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: install modules when user is not root

2001-07-19 Thread Richie Crews
Include your folder of modules in the @INC path to a folder in your home dir or a dir you have permission too write to Richie Crews Unix Systems Administrator (706) 773 - 3436 CELL (706) 634 - 3681 DESK (706) 634 - 3831 FAX

Problem with update from ActiveState Perl v 5.00502 to 5.6.1.628

2001-07-19 Thread Chuck Morford
Hi All, I've inherited a system that uses Perl scripts as a web front-end for IMAP mail... (Netscape Messenger Express v3.5.2) We have a lot of problems with memory leaks and hung processes on this machine so I thought an update to the most recent version might help to solve the problem. On a

Comparing Arrays

2001-07-19 Thread Diego Riaño
Hi everybody I have two array, like this @array1=(one, two, three); @array2=(one,tww,three); Is there some way to compare the two arrays? I was trying with the eq and ne operations inside an IF statement but i does not work Could someone help me. Thanks Diego -- To unsubscribe, e-mail:

Re: What modules should I look to first?

2001-07-19 Thread Rashid Faraby
PerlMonth has an interesting survey which ranks favourites modules: http://www.perlmonth.com/polls/index.html?issue=11 Very informative and useful site, by the way! Rashid -Original Message- From: MRossland [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Wed, 18 Jul 2001 16:39:05 -0700

Re: question

2001-07-19 Thread Abdulaziz Ghuloum
Hello, You might want to try using the newsgroup instead of the mailing list. The address is nntp.perl.org. Hope this helps,,, Aziz,,, In article 009c01c11016$81b60840$0200a8c0@Apartment, Patrick Kelly [EMAIL PROTECTED] wrote: What is the website of this newsgroup? I can't afford to keep

Re: Comparing Arrays

2001-07-19 Thread Aaron Craig
At 15:21 19.07.2001 +0200, Diego Riaño wrote: Hi everybody I have two array, like this @array1=(one, two, three); @array2=(one,tww,three); Is there some way to compare the two arrays? I was trying with the eq and ne operations inside an IF statement but i does not work Could someone help me.

Using CGI.pm

2001-07-19 Thread Customer Service
Randal, Brian, Stephen, Thanks a bunch for your help with my parsing script. I appreciate it very much. Here’s another problem: Why doesn’t this do what I think it should do? (I just get “Internal server error”) #!c:/perl/bin/perl -w use strict; use CGI qw(param); my

RE: Removing spaces

2001-07-19 Thread Abdulaziz Ghuloum
Hello, Of course this regex only removes the leading spaces only, or the trailing spaces if there are no leading spaces. You can use $string =~ s/^ +| +$//g; # g for global matches or do it in 2 steps: $str =~ s/^ +//; $str =~ s/ +$//; Hope this helps,,, Aziz,,, In article

Re: Removing spaces

2001-07-19 Thread Dave Neill
There's also: $foo =~ s/^\s*//; and if you want to strip leading and trailing spaces: $foo =~ s/^\s*(.*?)\s*$/$1/; Though some say that the two step: $foo =~ s/^\s*//; $foo =~ s/\s*$//; is faster. There's also a module: String::Strip with a function StripLTSpace() and it's fore and aft

RE: Comparing Arrays

2001-07-19 Thread Mooney Christophe-CMOONEY1
That's an excellent question, i said to myself; i'll bet there's a module for that! So, i looked on cpan, and it looks like Array::Compare will do the trick. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: install modules when user is not root

2001-07-19 Thread Abdulaziz Ghuloum
Hello, Try perldoc -q 'my own module' Hope this helps,,, Aziz,,, In article 01071918011800.00964@m12, Rizwan [EMAIL PROTECTED] wrote: Hi! all, I am trying to install some of the CPAN modules ,like the b::graph module, but I am not able to because I dont have the root privilages.

perl and internet files

2001-07-19 Thread Sparkle Williams
Good morning! I just wrote a perl program that retrieves files of type http:// and ftp:// from the internet. When it retrieves the files it comes up in the html syntax of head, body, text etc. Is there any way I can write an addition to my script that will cause the text to come up in it's

Re: simple Telnet or vi editor problem

2001-07-19 Thread Rahul Garg
Hello, Any solutions regarding this , Creating a problem . Waiting for Reply... Subject: simple Telnet or vi editor problem I am using vi editor on telnet. After typing in 25 or so lines the next lines are not shown though they are savedstupid

Re: perl and internet files

2001-07-19 Thread Sascha Kersken
Hi! There's the wonderful recipe 20.5 (Converting HTML to ASCII) in Chapter 20 (Web Automation) of the Perl Cookbook (by Tom Christiansen and Nathan Torkington, from O'Reilly). A basic way to achieve the ripping of HTML tags and the replacement of br and p tags by line breaks might be something

Re: Re: simple Telnet or vi editor problem

2001-07-19 Thread anna . roberts
Rahul, You could use a :1 and that will take you to the first line of your program. Then use cntrl d to page you down. cntrl u will get you up one page. Anna Rahul Garg [EMAIL PROTECTED] wrote: Hello, Any solutions regarding this , Creating a problem . Waiting for

Sessions

2001-07-19 Thread Chris Mulcahy
OK, simple one. Other than creating a database table and managing sessions on my own by passing cookies around manually, are there any options for managing sessions in Perl using CGI? Apache::Session appears to only work in the mod_perl version. The error I keep getting in my error_log file

Re: Using CGI.pm

2001-07-19 Thread Brett W. McCoy
On Thu, 19 Jul 2001, Sascha Kersken wrote: That $a in the first script, to me, looks like an OO-style CGI Query object. This has to be created before use: $a = new CGI; Using $a and $b for variables is not a good idea, since they are used for sort and can cause some wierd warnings or

Windows Directory Parsing and Deleting

2001-07-19 Thread DuBois, Patricia A
Okay I really am a newbie. This whole perl thing has confused me. (Any suggestions on clarification to my confusion of the language would be appreciated as well) I am trying to create a script on an NT machine that will search through the directories and find specific directories/folders and

RE: Comparing Arrays

2001-07-19 Thread Jeff 'japhy/Marillion' Pinyan
On Jul 19, Mooney Christophe-CMOONEY1 said: That's an excellent question, i said to myself; i'll bet there's a module for that! So, i looked on cpan, and it looks like Array::Compare will do the trick. All the same, this is a question that stumps a lot of people. There are two ways to

RE: HELP!!! What's wrong with my app.??

2001-07-19 Thread Mark Maunder
Hi Jon, Your script should look something like this: #!/usr/bin/perl use CGI qw( :standard ); open(LOGFILE, logfile.txt) or die Can't open logfile: $!\n; while($line = (LOGFILE)) # { chomp $line; push(@links, $line); #This was the main problem. You were doing # $line = $link

Re: multi element array question

2001-07-19 Thread Bradford Ritchie
Thanks! I guess I didn't read perldata close enough because I had no idea you could specify more than one key at a time yet another cool discovery!-- Brad On Wed, Jul 18, 2001 at 10:13:04PM -0400, Bradford Ritchie wrote: Could you please explain how your code suggestion below works?

Re: string vs 'string' parameters

2001-07-19 Thread Ruth Albocher
Paul wrote: --- Ruth Albocher [EMAIL PROTECTED] wrote: create_unit(SDunit, 'SDunit_name'); in create_unit function: my $self = shift; my $type = shift; my $name = shift; my $unit; $unit = $type-new(stuff...); $self-{'units'}-{$name} = $unit; looks like a

Re: HELP!!! What's wrong with my app.??

2001-07-19 Thread Jerry Preston
Jon, This is one way of doing it: use CGI; use CGI::Carp qw(fatalsToBrowser); $query=new CGI; print $query-header(); print $query-start_html( -title='tt' ); print $query-startform( -method='POST', -name ='tt'); local( *LOGFILE ); $j = 0; open( LOGFILE, logfile.txt ) or

Re: Dictionary

2001-07-19 Thread Jason Ledbetter
On Thu, 19 Jul 2001, Ela Jarecka wrote: Ok, lemme take a crack at it. ;) while(defined($line = FILEH)) { Couldn't you just: while ($line = FILEH) { or is there something I'm missing? if ( $toBf =~ /^\n$/) { die Bye, bye!\n; } This would typically be considered bad form, I

RE: install modules when user is not root

2001-07-19 Thread Ross, Jonathan C.
An issue arises with building large and complex modules that normally install to multiple places in the Perl library tree. If you can't run make install you have to figure out the destinations by hand. One solution is to establish your own library tree. If you say make

Re: Windows Directory Parsing and Deleting

2001-07-19 Thread Luke Bakken
File::Find use function finddepth to go through directories' contents *before* looking at the dir itself. use File::Find my $wanted = sub { #skip unless the dir contains '_vti' at the beginning unless($File::Find::dir =~ /^_vti/) { return } #if we're looking at a dir,

Weekly list FAQ posting

2001-07-19 Thread casey
NAME beginners-faq - FAQ for the beginners mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to [EMAIL PROTECTED] You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email address):

sed to perl

2001-07-19 Thread Frank Newland
I want to use perl to do what I can't do on large files with sed. 1. I run the following Unix command: $prompt sed -f list_of_changes original outputfile 2. Extract of list_of_changes: s/KAREN/LAURA /g s/KARA/MONA/g s/MIKE/OMAR/g s/BOB/TOM/g ... 3. The file list_of_changes contains

Re: perl and internet files

2001-07-19 Thread Michael Fowler
On Thu, Jul 19, 2001 at 09:51:14AM -0400, Sparkle Williams wrote: I just wrote a perl program that retrieves files of type http:// and ftp:// from the internet. When it retrieves the files it comes up in the html syntax of head, body, text etc. Is there any way I can write an addition to

Re: sed to perl

2001-07-19 Thread Paul
--- Frank Newland [EMAIL PROTECTED] wrote: I want to use perl to do what I can't do on large files with sed. 1. I run the following Unix command: $prompt sed -f list_of_changes original outputfile 2. Extract of list_of_changes: s/KAREN/LAURA /g s/KARA/MONA/g s/MIKE/OMAR/g

Re: sed to perl

2001-07-19 Thread Paul Johnson
On Thu, Jul 19, 2001 at 12:31:16PM -0500, Frank Newland wrote: I want to use perl to do what I can't do on large files with sed. Have you looked at s2p, which comes as standard with perl? -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED]

Help: Starting a script with command line arguments

2001-07-19 Thread Bob Bondi
My question is: how can I pass arguments to a script from the command line? The script at the tail of this message is what I thought would print the 2 arguments I passed into the script, yet the output for this snippet is: Here ya go: Here ya go: Count is: 0 Not enough arguments to get started

RE: Help: Starting a script with command line arguments

2001-07-19 Thread Mooney Christophe-CMOONEY1
Command line arguments are passed to the script in the array '@ARGV', not '@_'. '@_' is used for subroutines. -Original Message- From: Bob Bondi [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 12:51 PM To: [EMAIL PROTECTED] Subject: Help: Starting a script with command line

I'm looking for a program to make a Perl Script into a Windows .EXE

2001-07-19 Thread Daryl J. Hoyt
Hi, I'm looking for a program that can make a windows executable out of a Perl script. The exe would then be run on computers that do not have Perl installed on them. Does anyone have any suggestions or recommendations? Thanks, Daryl J. Hoyt Performance Engineer Geodesic Systems

Re: I'm looking for a program to make a Perl Script into a Windows .EXE

2001-07-19 Thread Lynn Glessner
I think that the program you are looking for is perl2exe - Original Message - From: Daryl J. Hoyt [EMAIL PROTECTED] To: Beginners Perl [EMAIL PROTECTED] Sent: Thursday, July 19, 2001 10:53 AM Subject: I'm looking for a program to make a Perl Script into a Windows .EXE Hi, I'm looking

Re: Sessions

2001-07-19 Thread Michael Fowler
On Thu, Jul 19, 2001 at 09:20:39AM -0500, Chris Mulcahy wrote: Other than creating a database table and managing sessions on my own by passing cookies around manually, are there any options for managing sessions in Perl using CGI? Apache::Session appears to only work in the mod_perl version.

RE: sed to perl

2001-07-19 Thread Frank Newland
I have 3 worthwhile solutions. 1. s2p on original sed file (Paul Johnson) 2. perl -p .(Paul [[EMAIL PROTECTED]]) 3. Randall's convert to hash..(Randall...) I'll give all three the ol' corporate try :( Method which I like best gets a 10%cut from my check from Ed McMahon...

RE: I'm looking for a program to make a Perl Script into a Windows .EXE

2001-07-19 Thread Craig Westerman
Daryl, You can get perl2exe here: http://www.indigostar.com/perl2exe.htm Craig [EMAIL PROTECTED] -Original Message- From: Daryl J. Hoyt [mailto:[EMAIL PROTECTED]] Hi, I'm looking for a program that can make a windows executable out of a Perl script. The exe would then be

Using CGI.pm

2001-07-19 Thread Alessandro Lenzen
I think your header is spelled wrong, try print Content-Type: text/html \n\n; ^there is the bugger! But why would you want to print the header manually when using CGI.pm? al -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Out of memory on sort !!!!

2001-07-19 Thread Derrick (Thrawn01)
I setup an multidimetional array of data. ( I loading data base files into memory.) I wan't to sort the records by field 0 But when I sort this referenced array ( multidimetional array ) I get an out of memory error. There are 80 or so records and each record has 20 fields each field varies but

Module question

2001-07-19 Thread anna . roberts
Okay now I'm really frustrated. I downloaded the CPAN module got it installed made sure everthing was installed right. Proceeded to try and use it my program and it dosen't work. For me atleast. I'm not sure what Im doing wrong. It is so simple I'm sure but well I'm not getting it. :(

autoflush on network connection

2001-07-19 Thread Silvio Luis Leite Santana
Hello all Trying to learn a bit of networking, I am using the module IO::Socket::INET just as shown in the camel book (3rd edition) pg 439-441. I have a client process (that sends data), and a server (that receives those data). I send data from the client to server with the lines: $mensagem =

Re: Starting a script with command line arguments

2001-07-19 Thread Martin Schneider
Bob Bondi [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... My question is: how can I pass arguments to a script from the command line? The script at the tail of this message is what I thought would print the 2 arguments I passed into the script, yet the output

Re: Out of memory on sort !!!!

2001-07-19 Thread todd
Why not use the DB to process your sort? todd. On Thu, 19 Jul 2001, Derrick (Thrawn01) wrote: I setup an multidimetional array of data. ( I loading data base files into memory.) I wan't to sort the records by field 0 But when I sort this referenced array ( multidimetional array ) I get an

RE: regex question with s///

2001-07-19 Thread Bob Showalter
Bradford Ritchie wrote: Is it possible to take a string ($pat) do a substitution on it and print the result, without actually changing the contents of the original variable? No; you have to do the subsitution on a copy. Basically, I'm trying to write a script that will take a string

Re: regex question with s///

2001-07-19 Thread Jason Ledbetter
for my $i (1 ... $num) { s/$pat/$pat+$i/; } Get me? -- Jason Ledbetter Data Conversion Specialist Perl Monk and Ascii Ninja Cadmus Professional Communications [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: regex question with s///

2001-07-19 Thread Jason Ledbetter
Ergh. I've got this feeling I misunderstood your question. If so, forgive me. -- Jason Ledbetter Data Conversion Specialist Perl Monk and Ascii Ninja Cadmus Professional Communications [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: perl and internet files

2001-07-19 Thread Jos I. Boumans
why yes there is... i wrote a little module for perl that does just that. basicly, you pass the module a filehandle, it strips out all hte html (leaving the links in the file intact however) and passes back a string a sample script is also available. look at http://japh.nu/index.cgi the site

perl path

2001-07-19 Thread Anshu Anshu
I got a perl script .. First two line are like I never saw before .. #!/usr/local/bin/perl #!/temp_perl/bin/perl -I/temp_perl/lib/perl5 -I/temp_perl/lib/perl5/5.00502 -I/temp_perl/lib/perl5/site_perl/5. 005/sun4-solaris/ Anyone has any idea what is meaning of 2nd line above. -- To

  1   2   >