Re: need help with a form

2011-11-28 Thread Peter Scott
On Sun, 20 Nov 2011 23:04:28 -0800, Kevin Locke wrote: > I need help with getting a form for my church's website to work. Can > someone help me with the code to send the information to my email. I > would appreciate any input. > > Well, your first problem is that the actio

need help with a form

2011-11-21 Thread Kevin Locke
I need help with getting a form for my church's website to work. Can someone help me with the code to send the information to my email. I would appreciate any input. -- To unsubscribe, e-mail: beginners-cgi-unsubscr...@perl.org For additional commands, e-mail: beginners-cgi-h...@perl.org

Re: Need help to resove..... ExtUtils-Makemaker comilationS

2010-04-30 Thread Raheel Hassan
Hi Shlomi, I am very thankful to you for helping me, yes i resolved the problem actually perl-devel was missing. So when i executed 'urpmi perl-devel' i got EXTERN.h. Now i am able to install all the required packages from CPAN. The commands that you have mentioned below are very helpful for me.

Re: Need help to resove..... ExtUtils-Makemaker comilationS

2010-04-26 Thread Shlomi Fish
Hi Raheel, On Monday 26 Apr 2010 11:01:56 Raheel Hassan wrote: > Hi Shlomi, > > >Sorry for the late response. > > No problem it was a week end so i was also resting a bit :)) > OK. > >It's pretty old. If you're using it as a desktop, you may wish to upgrade > > > to > > >2010.0. > > Yes i

Re: Need help to resove..... ExtUtils-Makemaker comilationS

2010-04-26 Thread Raheel Hassan
Hi Shlomi, >Sorry for the late response. No problem it was a week end so i was also resting a bit :)) >It's pretty old. If you're using it as a desktop, you may wish to upgrade to >2010.0. Yes i am using it on my Desktop. >A lot of these can be installed by configuring urpmi to use the contrib >

Re: CGI-BIN Help/Advise - editing a file - HOW ?

2010-03-16 Thread Shlomi Fish
Hi newbie01! On Monday 15 Mar 2010 09:39:41 newbie01 perl wrote: > Hi, > > At the moment, I have some sort of INI/config file that I edit manually via > vi. These config files are "simple" delimited file that are used by some of > the scripts running on the server. > > I want to be able to the s

AW: CGI-BIN Help/Advise - editing a file - HOW ?

2010-03-15 Thread Thomas Bätzler
newbie01 perl asked: > At the moment, I have some sort of INI/config file that I edit manually > via vi. These config files are "simple" delimited file that are used by > some of the scripts running on the server. > > I want to be able to the same thing via cgi-bin, can anyone advise where > to s

CGI-BIN Help/Advise - editing a file - HOW ?

2010-03-15 Thread newbie01 perl
Hi, At the moment, I have some sort of INI/config file that I edit manually via vi. These config files are "simple" delimited file that are used by some of the scripts running on the server. I want to be able to the same thing via cgi-bin, can anyone advise where to start. Basically, I want to be

Re: Need help with a login script

2010-01-09 Thread Adam Jimerson
Thanks that did the trick. Robert Roggenbuck wrote: > At first assure that the correct values come from the database (see > below). May be that's enough... > > Greetings > > Robert > > > Adam Jimerson schrieb: > [snip] >> if (param) { >> form_verify (@user); >> print "Username: $user[0]\nPass

Re: Need help with a login script

2010-01-08 Thread Robert Roggenbuck
At first assure that the correct values come from the database (see below). May be that's enough... Greetings Robert Adam Jimerson schrieb: [snip] if (param) { form_verify (@user); print "Username: $user[0]\nPassword: $user[1]\n"; #use for debugging my $sth = $dbh->pr

Need help with a login script

2010-01-08 Thread Adam Jimerson
I know this topic is beaten to death, and then some, but I was wondering if someone could help me figure out what is wrong with my login script. No matter if I try to login with a valid credentals or not it says that the login has failed. I'm sure it has something to do with the way that

Re: Extracting TD's from a Text File (Regex Help).

2008-04-08 Thread Sean Davis
On Tue, Apr 8, 2008 at 8:22 AM, <[EMAIL PROTECTED]> wrote: > TEXT FILE ## > > > http://mysite.com/link/here_goes?id=239";>LINK > >   > > > http://mysite.com/link/here_goes?id=239";>LINK > width="150">06/11/2007 12:29AM > > > #

Re: Extracting TD's from a Text File (Regex Help).

2008-04-08 Thread Gunnar Hjalmarsson
[EMAIL PROTECTED] wrote: All I need is to extract the td with class "PhorumTableRowAlt thread". pen(TXT, "links.txt") or die "Unable to open file"; my @links = ; close (TXT); foreach my $link(@links) { While the substring of interest spans over multiple lines, you are dealing with one lin

Re: Extracting TD's from a Text File (Regex Help).

2008-04-08 Thread Wiggins d'Anconia
y I am coming to you for any Regex for it? TIA. > > HERE IS WHAT I AM DOING: > > pen(TXT, "links.txt") or die "Unable to open file"; > my @links = ; > close (TXT); > foreach my $link(@links) { > if ($link =~ m|(.*?)|gsi) { > print "$1";} > } >

Extracting TD's from a Text File (Regex Help).

2008-04-08 Thread sara.samsara
;; my @links = ; close (TXT); foreach my $link(@links) { if ($link =~ m|(.*?)|gsi) { print "$1";} } But NOTHING coming up. No results. Thanks for any help. Sara.

Re: Huge cgi!Help!pop3 Client

2007-10-07 Thread Gunnar Hjalmarsson
Zazen wrote: Hi dude! I have an orrible trouble with this poor cgi: is a client pop3 web based gateway.The function "connetti()" never been called and i don't know why!! ... Weren't the advices you got in comp.lang.perl.misc good enough? -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bi

Huge cgi!Help!pop3 Client

2007-10-07 Thread Zazen
e.if you try to execute the script all stop when you click on the submit button.I'm italian so i apologize for the bad english. I hope there is a good soul who help me. There is the code: #!/usr/bin/perl -w use Mail::POP3Client; use CGI qw(:all); #use CGIBook::Error; #use HTML::Template; loc

Re: Help on reading esc sequence

2007-06-11 Thread Paul Lalli
On Jun 11, 11:05 am, [EMAIL PROTECTED] (Paul Archer) wrote: > The reason this works is that when you read from STDIN, you are getting the > newline from when the user of the program hits return. Using '=~' is > implying a 'match', which will match the string/regexp supplied within the > variable's

Re: Help on reading esc sequence

2007-06-11 Thread Paul Lalli
On Jun 11, 9:23 am, [EMAIL PROTECTED] (Amrita Roy) wrote: > Actually i m running a process using perl script.so i want to do that if i > press ESC from the keyboard it will come out of the loop n comes out of the > function.I am trying to read the esc character using "\e"but it is not > responding.

Re: Help on reading esc sequence

2007-06-11 Thread Paul Archer
The reason this works is that when you read from STDIN, you are getting the newline from when the user of the program hits return. Using '=~' is implying a 'match', which will match the string/regexp supplied within the variable's value. 'eq' means the two strings have to be exactly equal to ea

Re: Help on reading esc sequence

2007-06-11 Thread Susheel Koushik
hi amrita, use if($var1 =~ '\e') inplace of if(var1 eq '\e') On 6/11/07, Amrita Roy <[EMAIL PROTECTED]> wrote: Hello, Actually i m running a process using perl script.so i want to do that if i press ESC from the keyboard it will come out of the loop n comes out of the function.I am trying to

Help on reading esc sequence

2007-06-11 Thread Amrita Roy
Hello, Actually i m running a process using perl script.so i want to do that if i press ESC from the keyboard it will come out of the loop n comes out of the function.I am trying to read the esc character using "\e"but it is not responding.I have even tried with hex (1B) value of esc charcter but

RE: Help downloading a file

2007-05-01 Thread Hellman, Matthew
he content-disposition header will cause the PDF to display inline. The user would then have to manually save the PDF. >>-Original Message- >>From: Moon, John [mailto:[EMAIL PROTECTED] >>Sent: Tuesday, May 01, 2007 9:56 AM >>To: beginners-cgi@perl.org >>Subject: Help

Re: Help downloading a file

2007-05-01 Thread Greg Jetter
On Tuesday May 1 2007 6:56 am, Moon, John wrote: > Below is code I presently use to download to clients and the generated > html. One client objects to the generated html - the > "Content-Disposition" ... Does any one have another method to download > AND display the pdf with perl. > > > sub Displa

Re: Help downloading a file

2007-05-01 Thread Greg Jetter
On Tuesday May 1 2007 6:56 am, Moon, John wrote: > Below is code I presently use to download to clients and the generated > html. One client objects to the generated html - the > "Content-Disposition" ... Does any one have another method to download > AND display the pdf with perl. > > > sub Displa

Help downloading a file

2007-05-01 Thread Moon, John
Below is code I presently use to download to clients and the generated html. One client objects to the generated html - the "Content-Disposition" ... Does any one have another method to download AND display the pdf with perl. sub Display_PDF { my ($pdf, $pdf_size) = @_; $|=0; print $q

Re: need help

2006-08-25 Thread Ovid
- Original Message From: Lou Hernsen <[EMAIL PROTECTED]> > I am writing an online game, in perl, and I am in need of a way to verify a > Paypal.com payment for game subscription. > I have no clue as to how to do this...or where to start. > Lou I highly recommend that you check out the CP

RE: Regex Help.

2006-06-25 Thread Charles K. Clarkson
Lou Hernsen wrote: : and if I want to include certain german umlutted vowels like : ö and ä i would add them like this? : $string =~ tr/-_a-zA-Z0-9öä//cd; : What happened when you tested it? : then what does this do? (from parsing SDTIN) : : $name =~ s/%([a-fA-F0-9][a-fA-F0-9])/pac

Re: Regex Help.

2006-06-24 Thread Lou Hernsen
ot;C", hex($1))/eg; ### no clue at all $name =~ tr/\0//d; ### replaces zero values to empty I know you want me to use modules, but I am trying to learn the syntax, please help with a real answer. I want to be able to filter out undesired charecters so I think I should add $name

RE: Regex Help.

2006-06-24 Thread Charles K. Clarkson
Sara wrote: : Need help to remove EVERY thing (non-alphabets, symbols, : ASCII codes etc) from a string except for a-zAZ, 0-9, : dash and underscore. : : $string =~ s/?? Read perlop: Quote and Quote-like Operators $string =~ tr/-_a-zA-Z0-9//cd; HTH, Charles K. Clarkson -- Mobile

Re: Regex Help.

2006-06-24 Thread Mr. Shawn H. Corey
On Sun, 2006-25-06 at 00:14 +0500, Sara wrote: > Need help to remove EVERY thing (non-alphabets, symbols, ASCII codes etc) > from a string except for a-zAZ, 0-9, dash and underscore. > > $string =~ s/?? > > Thanks, > Sara. > By dash, I assume you mean ASCII

Regex Help.

2006-06-24 Thread Sara
Need help to remove EVERY thing (non-alphabets, symbols, ASCII codes etc) from a string except for a-zAZ, 0-9, dash and underscore. $string =~ s/?? Thanks, Sara.

Re: Need help parsing QUERY_STRING_UNESCAPED

2006-05-23 Thread Sean Davis
On 5/23/06 12:15 PM, "Ovid" <[EMAIL PROTECTED]> wrote: > --- "Dennis G. Wicks" <[EMAIL PROTECTED]> wrote: >> Sean, >> >> Thanks, but no cigar. CGI and several modules on CPAN will >> process QUERY_STRING but I can't find any modules that do >> anything with QUERY_STRING_UNESCAPED. And unfortun

Re: Need help parsing QUERY_STRING_UNESCAPED

2006-05-23 Thread Ovid
--- "Dennis G. Wicks" <[EMAIL PROTECTED]> wrote: > Sean, > > Thanks, but no cigar. CGI and several modules on CPAN will > process QUERY_STRING but I can't find any modules that do > anything with QUERY_STRING_UNESCAPED. And unfortunately, it isn't > as simple as $QUERY_STRING = $QUERY_STRING_UN

Re: Need help parsing QUERY_STRING_UNESCAPED

2006-05-23 Thread Dennis G. Wicks
Sean Davis wrote: In what environment are you seeing QUERY_STRING_UNESCAPED? It is not usually available in a CGI environment, from some quick reading. Sean DATE_GMT = Tuesday, 23-May-2006 11:11:17 GMT DATE_LOCAL = Tuesday, 23-May-2006 07:11:17 EDT DOCUMENT_NAME = printenv.html DOCUMENT_P

Re: Need help parsing QUERY_STRING_UNESCAPED

2006-05-23 Thread Sean Davis
t;>> routines I use when QUERY_STRING is set. I don't want to have to write >>> a separate routine for each case. >>> >>> CPAN has been no help, nor any of the various tutorials and >>> documentation sites. >>> >>> Has anybody encount

Re: Need help parsing QUERY_STRING_UNESCAPED

2006-05-23 Thread Dennis G. Wicks
ormed to the form it would be in QUERY_STRING in a variable that I can parse and process with the same routines I use when QUERY_STRING is set. I don't want to have to write a separate routine for each case. CPAN has been no help, nor any of the various tutorials and documentation si

Re: Need help parsing QUERY_STRING_UNESCAPED

2006-05-22 Thread Sean Davis
would be in QUERY_STRING in a variable that I can parse and process with the same routines I use when QUERY_STRING is set. I don't want to have to write a separate routine for each case. CPAN has been no help, nor any of the various tutorials and documentation sites. Has anybody encou

Need help parsing QUERY_STRING_UNESCAPED

2006-05-22 Thread Dennis G. Wicks
in a variable that I can parse and process with the same routines I use when QUERY_STRING is set. I don't want to have to write a separate routine for each case. CPAN has been no help, nor any of the various tutorials and documentation sites. Has anybody encountered and solved this probl

new install broke some of my old cgi - any help appreciated

2006-05-11 Thread Bill Angus
I just installed Apache 2.0.58 and perl 5.8.8... It transpires that some of my formerly operating .CGI software is now broken :( The messages I'm getting seem to do with new character set support that isn't understanding the old code -- or else the old code is failing to specify its character

Re: need help

2006-03-23 Thread julian thomas p
quot; "1086" "-" "Mozilla/4.0 (compatible; MSIE 6.0; > > Windows NT 5.0; .NET CLR 1.1.4322)" > > > > "61.17.177.147" "09/Mar/2006:20:42:01 CST" "POST > > http://biosolutions.siteburg.com/cgi-bin/mt/ex3.pl > > HTTP/1

Re: need help

2006-03-22 Thread Paul Archer
Yesterday, Chris Devers wrote: On Tue, 21 Mar 2006, julian thomas p wrote: but when i tried to run inweb server(biosolutions.siteburg.com) iam getting a blank page rather than results. permission level for script is 711 and for cgi folder 700. Can [you] please post some code? Can you writ

Re: need help

2006-03-21 Thread Chris Devers
2)" > > > > "61.17.177.147" "09/Mar/2006:20:42:01 CST" "POST > > http://biosolutions.siteburg.com/cgi-bin/mt/ex3.pl > > HTTP/1.1" "200" "329" > > > ### > > > can u please help me

need help

2006-03-21 Thread julian thomas p
/form.html HTTP/1.1" > "200" "1086" "-" "Mozilla/4.0 (compatible; MSIE 6.0; > Windows NT 5.0; .NET CLR 1.1.4322)" > > "61.17.177.147" "09/Mar/2006:20:42:01 CST" "POST > http://biosolutions.siteburg.com/cgi-bin/mt/ex

Re: newbie needs help on hidden and CGI parameters

2006-03-09 Thread Sean Davis
You realize that "hidden" fields are not hidden, right? You just have to view the source of the page in which they are embedded and you now know the username and password, and that with every round-trip to the server, this information is sent in plain-text (unless you are using SSL)? I would read

newbie needs help on hidden and CGI parameters

2006-03-09 Thread Mary Anderson
Hi all, I have a login screen login.pl which calls another application sampleEntry.pl. The login and password are passed to a multipage Sample Entry program as CGI parameters sampleEntry.pl?login=mylogin&password=mypassword. These two parameters are used in one of the pages to login to

Re: Help with issuing the correct mime headers

2006-01-19 Thread RangerRickCA
Please remove me from this list! Thank you! RRCA

Help with issuing the correct mime headers

2006-01-18 Thread Dermot Paikkos
sition header to make IE save the file with another name. # relevant lines print $q->header(-type=>'text/plain', -Content-Disposition=>{type=>'inline',filename=>"$filename"}, ); Any help would be appreciated. Thanx. Dp. ===

RE: Lou's Code - need a little more help on mod questions.

2005-11-29 Thread Charles K. Clarkson
Lou Hernsen wrote: : "Charles K. Clarkson" <[EMAIL PROTECTED]> : : : Lou Hernsen wrote: : : : : : Bareword "stats" not allowed while "strict subs" in use at : : : C:\WWW\MYSTIC~1\CGI-BIN\TEST-N~1\MA.CGI line 4359. Execution : : : of C:\WWW\MY

Re: Lou's Code - need a little more help on mod questions.

2005-11-29 Thread Lou Hernsen
I did some testing tonight when I take out use stats; and take out stats; the program runs perfect. and the stats.pm runs just fine in my editor. so what the command to run the mod in it entirity? or does it have to be run as one big subroutine? I will experient with that tommorrow Lou --

Re: Lou's Code - need a little more help on mod questions.

2005-11-29 Thread Lou Hernsen
- Original Message - From: "Charles K. Clarkson" <[EMAIL PROTECTED]> To: Sent: Monday, November 28, 2005 3:10 PM Subject: RE: Lou's Code - need a little more help on mod questions. > Lou Hernsen <mailto:[EMAIL PROTECTED]> wrote: > > : Bareword &q

RE: Lou's Code - need a little more help on mod questions.

2005-11-28 Thread Charles K. Clarkson
Lou Hernsen wrote: : Bareword "stats" not allowed while "strict subs" in use at : C:\WWW\MYSTIC~1\CGI-BIN\TEST-N~1\MA.CGI line 4359. Execution of : C:\WWW\MYSTIC~1\CGI-BIN\TEST-N~1\MA.CGI aborted due to compilation : errors What's on the lines near line 4359? HTH,

Lou's Code - need a little more help on mod questions.

2005-11-28 Thread Lou Hernsen
OK... I have put the mod in the same dir as the main prog. chmod 644 on mod chmod 755 on main however there is an error. the mod does nothing more that produce HTML and a few calculations. the mod works fine with out error in my editor. however the main program does not like how I call stats.pm i

RE: our..... Lou's code ( was: Need help with making a Modules )

2005-11-28 Thread Charles K. Clarkson
"main". If you are not using "strict" you don't need "our". : So if I run the mod as one big ad-in program to main : and not calling subs in the mod, I don't have to pass vars in the : ()'s? stats; : and not : stats::sub($var1, $var2, etc);

RE: Need help with making a Modules

2005-11-27 Thread Charles K. Clarkson
Lou Hernsen wrote: : I am trying to create a module that will print the Stats of the : player of my on line game. : all it should do is take the vars, do some calulations and print the : HTML : since the Stats is used in every time i don't want to duplicate it in : each

Re: Need help with making a Modules

2005-11-27 Thread Lou Hernsen
#x27;t get this to work I'll just leave the sub Stats() in each program and not worry about it. Thanks Lou - Original Message - From: "Charles K. Clarkson" <[EMAIL PROTECTED]> To: Sent: Sunday, November 27, 2005 12:46 AM Subject: RE: Need help with making a Modules

Re: Need help with making a Modules

2005-11-27 Thread Lou Hernsen
This small piece of the Stats sub calculates the speed at which you are traveling. I have in the main program. use stats and I call on it just like a regular sub Speed(); or should it be stats::Speed; When I call on the entire mod, i want the whole thing to run. I could just put all the sub

RE: Need help with making a Modules

2005-11-27 Thread Charles K. Clarkson
Lou Hernsen <mailto:[EMAIL PROTECTED]> wrote: : I am studying modules.. I am seeking a mentor to help. What do you mean by "module"? I ask because many people have very different ideas about what one is. For example, some people think about a library. require &#

Re: Need help with making a Modules

2005-11-27 Thread David Dorward
On Sat, 2005-11-26 at 19:48 -0800, Lou Hernsen wrote: > I am studying modules.. perldoc perlmod (and perlmodlib, and perlmodstyle) > Do I need to pass vars into the mod? No, but you might need to pass them into subroutines you define in the module (depending on what you want to do). > Do i nee

Need help with making a Modules

2005-11-27 Thread Lou Hernsen
I am studying modules.. I am seeking a mentor to help. I have very simple questions like ... Do I need to pass vars into the mod? Do i need to declare vars in the mod? What is "our"? something like "my" and "local"? Do I need to return vars? The code I am writing cr

Re: I need help here

2005-10-14 Thread Bill Stephenson
On Oct 14, 2005, at 7:22 AM, Sreedhar reddy wrote: Hi, I am very new to PERL and I need a program to do following task. Can u help me pls. I have a file with following contents. 454 NV_DS_DEFAULT_BAUDRATE_I 455 NV_DIAG_DEFAULT_BAUDRATE_I 516 NV_WCDMA_RX_LIN_VS_TEMP_I I am expecting out

I need help here

2005-10-14 Thread Sreedhar reddy
Hi, I am very new to PERL and I need a program to do following task. Can u help me pls. I have a file with following contents. 454 NV_DS_DEFAULT_BAUDRATE_I 455 NV_DIAG_DEFAULT_BAUDRATE_I 516 NV_WCDMA_RX_LIN_VS_TEMP_I I am expecting out put like NV_DS_DEFAULT_BAUDRATE_I 454

Please help me to get CONVERTER script which XML file convert to text

2005-10-13 Thread nahid
How do you do! I need to perl scriptcode which is convert XML file to txt(TEXT). Please any body help me how can i find or write this converter. I try explain. This program must work on the OS Unix. So, this programm must convert XML file to text file. I write a simple prog in perl whish is open

Re: Help w/Modules

2005-09-27 Thread Bill Stephenson
On Sep 25, 2005, at 2:01 PM, Randal L. Schwartz wrote: That's why I created CGI::Prototype::Hidden... to lazy-load the code for the particular step of the application. Randal, this really piqued my interest and after a little poking around I found this link; http://www.stonehenge.co

Re: Help w/Modules

2005-09-25 Thread Randal L. Schwartz
> "Bill" == Bill Stephenson <[EMAIL PROTECTED]> writes: Bill> Wouldn't it be more efficient for the server to run a small script Bill> that contains only the set-up and sub-routines needed to process a Bill> single "run-mode" instead of loading all the data needed to process Bill> all the "run

Help w/Modules

2005-09-25 Thread Bill Stephenson
I'm trying to understand how to convert my CGI scripts to use modules. My first step is to create a "SetUp" module where I can store common stuff. I put together a module and script to test it with but it doesn't work. It doesn't display the first (default) and last options correctly and I can'

Re: Help w/Modules

2005-09-25 Thread Bill Stephenson
On Sep 24, 2005, at 10:59 AM, Bill Stephenson wrote: I'm trying to understand how to convert my CGI scripts to use modules. I worked this problem out. Reading the docs and this page (http://www.perl.com/pub/a/2001/06/05/cgi.html) for CGI::Application has helped me better understand how to us

Help w/Regexp filtering

2005-06-04 Thread Mike Blezien
$filters[$i] or $wordtochk =~ /(\d\s*){6,11}/ or $wordtochk =~ /\@/) { print qq~Word: $wordtochk - Filter:$filters[$i]~; $match = 1; last CHECK; } } } Any help would be much appreciated. :) -- Mike(mickalo)Blezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Re: Help wanted

2005-05-31 Thread Wiggins d'Anconia
t; > Terence > Doing the mouse over part may prove difficult, it is client side. You might want to look into the GD::Graph module to help you with generating the figures. There are other modules available to do graphing with as well. HTH, http://danconia.org -- To unsubscribe, e-mail:

Help wanted

2005-05-31 Thread Yuanxin
Hi, I had a lot of data, which are all x-y values. I stored these data in MySQL database. Now I wanna use Perl to get these data from database to build a figure(2-dimensional) and people can use internet to see the figure. In addition, when people see the figure via internet, the x-y value of a

Re: need logic and one error help

2005-03-28 Thread T Raymond
Hi Charles and everyone, It turns out I was clearing my hash each time because it was re-initializing every time. Once I stopped doing that, my error went away. Thanks everyone for your tips and help, I will try to incorporate your tips in my programs. --Tee Charles K. Clarkson wrote: T

RE: need logic and one error help

2005-03-28 Thread Charles K. Clarkson
T Raymond wrote: : Hi all, : Please advise me about my logic/syntax errors. I can't seem to figure : out how to write in a logical sequence this code. What is in 'employee.dat'? It would be helpful if we could run the example. : I'm also getting an : error which I

RE: need logic and one error help

2005-03-28 Thread Charles K. Clarkson
Steven Schubiger wrote: : On 28 Mar, T Raymond wrote: : : : print header, : : What is header supposed to act on? : If it's the method declared in CGI.pm, which I'd assume, : you need to create an object by saying my $q = new CGI and : replace header with $q->header.

Re: need logic and one error help

2005-03-27 Thread Steven Schubiger
On 28 Mar, T Raymond wrote: > #!/usr/bin/perl -w Refactor with use warnings instead of -w. -w leaks warnings to all scopes, i.e. external modules, whereas warnings keeps itself to the local block. See perldoc warnings therefore. > print header, What is header supposed to act on? If it's the m

Re: need logic and one error help

2005-03-27 Thread T Raymond
Hi, This is a homework assignment but we are allowed to get help. --Tee T Raymond wrote: Hi all, Please advise me about my logic/syntax errors. I can't seem to figure out how to write in a logical sequence this code. I'm also getting an error which I don't understand whic

need logic and one error help

2005-03-27 Thread T Raymond
Hi all, Please advise me about my logic/syntax errors. I can't seem to figure out how to write in a logical sequence this code. I'm also getting an error which I don't understand which states that m/^$first_name/ has an uninitialized variable. -Tee #!/usr/bin/perl -w use CGI qw(:all); use CGI:

RE: Read Write to file .. need help

2005-01-14 Thread Graeme St. Clair
an 6 feet (2m!) away from my desk, except when I'm reading them in a more comfortable chair... Rgds, GStC. -Original Message- From: Ovid [mailto:[EMAIL PROTECTED] Sent: Friday, January 14, 2005 2:47 PM To: Luinrandir Hernsen; beginners-cgi@perl.org Subject: Re: Read Write to file .. need

Re: Read Write to file .. need help

2005-01-14 Thread Ovid
Hi Luinrandir, > Anyone know about this? or can I just: > #Open to read > open (DataFile, "$_[0]")||die "Sorry, I can't open $_[0]\n"; > flock (DataFile,2); >@Data =; > #open to write > open DataFile, ">$_[0]")||DieNice3("Can't write to $_[0]"); > flock (DataFile,2); > foreach $Data(@Data

Read Write to file .. need help

2005-01-14 Thread Luinrandir Hernsen
I need to read and write to a file before allowing the anyone else to read or write. I found this on the web.. but it does not work...maybe its my version of perl? http://htmlfixit.com/cgi-tutes/tutorial_Perl_Primer_011_File_manipulation_with_Perl.php File Operation modes: open: <$file&path Re

HELP ME SHOPPING CART

2004-12-01 Thread Daniel Hurtado Brenner
@item=split(/~/,$product); $cantunit=$item[3]; $cantotal=$cantotal+$cantunit; if ($item[0] ne $FORM{'sku'} || $hit==1) { $output.="$product%%"; } else { $hit=1; } } open(OUT,">$customer_file"); print OUT $output; close(OUT); $FO

Apache (cgi) help for UserDir

2004-11-15 Thread Jim Goh
but not from web browser, and got the following error: Premature end of script headers:example.pl #!/usr/bin/perl -wT print "Content-type: text/html\n\n"; print "Hello World!\n"; Thanks for any help! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Re: Help with php & perl

2004-10-22 Thread David Dorward
On Fri, Oct 22, 2004 at 05:51:06PM +1000, [EMAIL PROTECTED] wrote: > just spent absolutely days re writing all my html file into php with > css & includes for reusable page elements. only to find that my perl > script won't run the css or the php includes. A CSS @import (assuming that is what you

Help with php & perl

2004-10-22 Thread catrionaw
HI folks, just spent absolutely days re writing all my html file into php with css & includes for reusable page elements. only to find that my perl script won't run the css or the php includes. Any ideas on what I can do to alter this, I know the perl script locks down to html only, but I have

Re: Need a little help with a sub.

2004-10-14 Thread Wiggins d Anconia
> I am calling a sub with: > > &Navigate(%modules, %settings); > Drop the C<&> until you know what it is for. > And reading it like: > > sub Navigate { > (%modules, %settings) = @_; > Perl flattens lists automagically, so when it sees your C<%modules, %settings> it flattens it to on

Re: Need a little help with a sub.

2004-10-14 Thread Sean Davis
If you have two hashes, you are probably better off passing by reference, otherwise the first hash will slurp up the second hash on the [EMAIL PROTECTED] Something like &Navigate(\%modules,\%settings); sub Navigate { my ($module_ref,$settings_ref)[EMAIL PROTECTED]; Sean On Oct 14, 2004,

Re: Need a little help with a sub.

2004-10-14 Thread Andre Cameron
&Navigate(%modules, %settings); And reading it like: sub Navigate { (%modules, %settings) = @_; Only the first sub gets passed... See how tired I am? I ment hash, only the first HASH get passed LOL. aNc -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

Need a little help with a sub.

2004-10-14 Thread Andre Cameron
I am calling a sub with: &Navigate(%modules, %settings); And reading it like: sub Navigate { (%modules, %settings) = @_; Only the first sub gets passed... Been a while and I cant figure out what I am doing wrong. To tired to screw arround with it so I would love if some kind soul could poi

Re: Formmail help

2004-10-07 Thread Sander
We use the NMS formmail script. "William McKee" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi Sander, > > I'm not familiar with Exchange but if it speaks SMTP, you should be able > to use a module such as Mail::Sendmail or the newer Email::Send module > to talk to it. What for

Re: Formmail help

2004-09-30 Thread William McKee
Hi Sander, I'm not familiar with Exchange but if it speaks SMTP, you should be able to use a module such as Mail::Sendmail or the newer Email::Send module to talk to it. What formmail script are you using to process your forms? I'd recommend the nms scripts[1]. HTH, William [1] http://nms-cgi.s

Formmail help

2004-09-30 Thread Sander
We recently brought our own WindowsXP/Apache server online to host our site. However, we do not have a mail server to use for our forms, unless I it's possible to use my Exchange server somehow. Is there a 3rd party I can use to send mail for my forms. -- To unsubscribe, e-mail: [EMAIL PRO

Re: cant read cookie values from popup window....... plzz help me........

2004-09-21 Thread Bill Jones
--- manoj tr <[EMAIL PROTECTED]> wrote: > i send thecode that i corrected as follows. > $cookie = $output->cookie(-name => 'uid', -value => u100', -expires > => '+1d'); Well, for one, your quotes are unba;nced starting at the above line. Also, I would use - use strict; use warnings; use

cant read cookie values from popup window....... plzz help me........

2004-09-21 Thread manoj tr
Hai all, I use the strict paragma and and declared variable as correctly. After compilation there is no error and this time i cant read the cookie from the second window (pop up window generated by javascript). I request you to please point out the error if any one faced this problem. i

RE: Need some help using lib to add custom directories to @INC

2004-09-16 Thread Wiggins d Anconia
> > > -Original Message- > > From: Wiggins d Anconia [mailto:[EMAIL PROTECTED] > > Sent: Thursday, September 16, 2004 9:03 AM > > To: Ron Goral; Perl Beginners; [EMAIL PROTECTED] > > Subject: Re: Need some help using lib to add custom directories to @IN

RE: Need some help using lib to add custom directories to @INC

2004-09-16 Thread Ron Goral
> -Original Message- > From: Wiggins d Anconia [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 16, 2004 9:03 AM > To: Ron Goral; Perl Beginners; [EMAIL PROTECTED] > Subject: Re: Need some help using lib to add custom directories to @INC > > > Please only po

Re: Need some help using lib to add custom directories to @INC

2004-09-16 Thread Wiggins d Anconia
Please only post to one group, if that group does not yield a good answer, then try a different one. Especially since this has nothing to do with CGI. > Can anyone tell me why this code fails when trying to load > Some_Module_In_lib_Dir- > == > my $file_path = > substr

Need some help using lib to add custom directories to @INC

2004-09-16 Thread Ron Goral
Can anyone tell me why this code fails when trying to load Some_Module_In_lib_Dir- == my $file_path = substr($ENV{SCRIPT_FILENAME},0,index($ENV{SCRIPT_FILENAME},'/test.cgi')); use lib "$file_path/../lib"; use Some_Module_In_lib_Dir; == And th

Re: Need help on Chinese registration form

2004-08-31 Thread Wiggins d Anconia
> > I am working on the Chinese registration form, first time I do that, but > have a lot of questions. > > 1) The user will type in Chinese character, simple, on my form but how will > I know if I am capturing the Chinese character correctly so that I can save > to a flat file. > 2) The submitte

Need help on Chinese registration form

2004-08-31 Thread Daniel Chan
the file in Unicode format. 3) My perl cgi script will display some Chinese message interactively. I have a lot of problem when I tried to embed Chinese character with my code. Please help. Daniel

Re: A simple request need help

2004-08-19 Thread Bee
Thanks for you help very first, but what I want is just very simple.. I suggest the way to get my job done like this : use strict; use LWP::UserAgent; my $header = "Cookie: A=123;B=456\n"; $header .= "HTTP_REFERER = 'http://somewhere.com'"; my $url = http://som

Re: A simple request need help

2004-08-18 Thread Randy W. Sims
On 8/19/2004 12:06 AM, Bee wrote: > Hi, I have a script that ables to download sort of web pages automatically by > certain time. I use LWP::UserAgent to get almostly my job done, but this time, > I have a problem that the page require to send back cookies and http_referer... > It there anyway I c

  1   2   3   4   5   6   >