replacing numbers around a decimal

2002-10-18 Thread Hughes, Andrew
I am creating a little calculator that is going to need to take a user entered number that will always have 2 decimal places (using sprintf). It could be 89562321.29 or it could be 101.00) and take the last 4 digits (with the period included, so five places) and do two things: 1)Store the

listing modules installed with CPAN

2002-10-18 Thread Justin Cook
Hello- How can I tell what modules I've installed using CPAN? When I type in 'b' or 'd' or 'm' I seem to get everything, I only want to know what modules / bundles I've installed using CPAN. Thanks in advance, Justin -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: replacing numbers around a decimal

2002-10-18 Thread Felix Geerinckx
on wo, 16 okt 2002 20:03:31 GMT, Andrew Hughes wrote: I am creating a little calculator that is going to need to take a user entered number that will always have 2 decimal places (using sprintf). It could be 89562321.29 or it could be 101.00) and take the last 4 digits (with the period

RE: replacing numbers around a decimal

2002-10-18 Thread Hughes, Andrew
Thanks Felix. I actually used $start_discounted_gift_cert = ($total_start) * ($start_discounted_gift_cert_of_total); $start_discounted_gift_cert = sprintf(%8.2f,$start_discounted_gift_cert); $giftcert_remainder_first = substr($start_discounted_gift_cert, -5); $giftcert_remainder_first =

Re: [CGI ERR] Global symbol requires explicit package name ...

2002-10-18 Thread fliptop
On Wed, 16 Oct 2002 at 19:33, Colby opined: [snip] C:Global symbol requires explicit package name at ./myscript.cgi line C:60, 70, 90, 108 [snip] C:I've gone over the code with a fine-tooth comb as it were, checked for C:the usual (missing semi-colons, right parenthesis/curly braces, etc C:...)

Weekly list FAQ posting

2002-10-18 Thread casey
NAME beginners-faq - FAQ for the beginners-cgi 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

[CGI ERR] Global symbol requires explicit package name ...

2002-10-18 Thread Colby
I have a CGI script accessing a MySQL DB via DBI, the script executes almost flawlessly on my home Linux box running Apache 1.3.26 and Perl 5.8.0 (with the usual modules installed and then some :) (The only complaint my computer gives is a warning related to the concatenation operator '.')

radio_group Could you help me?

2002-10-18 Thread Beatriz
Hello, I'm Beatriz. I have a problem. Could you help me? I'he done an application to generate an index using an MySql table. When I see the CGI in the Internet Explorer I see the radio_group well only one of them is check, but if I show it in Netscape I show all radio checked. I send you the

Re: listing modules installed with CPAN

2002-10-18 Thread William McKee
On 17 Oct 2002 at 14:15, Justin Cook wrote: How can I tell what modules I've installed using CPAN? When I type in 'b' or 'd' or 'm' I seem to get everything, I only want to know what modules / bundles I've installed using CPAN. Read the section about autobundle in `perldoc CPAN`. William --

RE: replacing numbers around a decimal

2002-10-18 Thread William McKee
Hi Andrew, I think your approach should work fine as long as you put your data into a standard format. Perl doesn't differentiate between strings or numbers. A few suggestions: 1. encapsulate this code into a generic function, or method if you're doing OOP 2. use a constant or

using CGI::SecureState with CGI::Pretty

2002-10-18 Thread Randy Perkins perl_list
if this message has came thru before, i am sorry and wont make a habit of it. hello, i would like to be able to use CGI::Pretty, with the html shortcuts along with CGI::SecureState. if i uncomment #use CGI::Pretty qw/:standard/; i get the following error:--- Undefined

question about use MODULE

2002-10-18 Thread MMKHAJAH
Hello, I wonder wether 'use module' compiles only once. I mean that all sebsequent calls don't involve compiling. Example: MyLib.pm package MyLib; use strict; use MyConfig; ## ## Code the uses MyConfig ## MyScript.pl use MyLib; use MyConfig; Will the 'use MyConfig' in the second file