UBB.Dev
Posted By: Em8 a script (that to your surprise DOES work) - 11/06/2000 3:10 AM
http://opena.virtualave.net/cgi-bin/multi.cgi

===========================================
#!/usr/local/bin/perl

# You need Cgi.pm

use CGI::Carp qw(fatalsToBrowser);
use CGI qw(:standard);

$q = new CGI;
$a = param('action');
$n = $q->param('Mul');
$m = $q->param('Mult');
$final = $n * $m;
print $q->header;
print $q->start_html;

if ($a eq "mul"){
&main;
}
if ($a eq ""){
&here;
}

sub here{
print $q->start_form;
print "n";
print $q->textfield(-name=>'Mul');
print " x ";
print $q->textfield(-name=>'Mult');
print " ",$q->submit;

}

sub main{
&here;
print "


$n x $m = $final ";

}

print $q->end_html;

============================================
it realy works! I guess buying that $50(*cough* $49.95 [Linked Image]) O'Realy book helped!
just what does this do?
Posted By: Em8 Re: a script (that to your surprise DOES work) - 11/06/2000 3:36 AM
Oh ya [Linked Image], you enter two numbers and then it multiplies them!

------------------
Quote
quote:
-That guy was an ideot!
Cool [Linked Image]

I build small scripts like that all the time to help me out in math [Linked Image] just because it's more fun than useing a calculator

------------------
ZCom Bulletin Boards - Open Source Bulletin Boards
Posted By: Em8 Re: a script (that to your surprise DOES work) - 11/07/2000 7:03 AM
then you'll love this one [Linked Image]
=============================================
#!/usr/local/bin/perl

# NEED Cgi.pm

use CGI::Carp qw(fatalsToBrowser);
use CGI qw(:standard); # Saves loads of work

$q = new CGI;
$a = param('action');
$n = $q->param('Mul');
$m = $q->param('Mult');
$final = $n * $m;
print $q->header;
print $q->start_html;

if ($a eq "mul"){
&main;
}
if ($a eq ""){
&here;
}

sub here{
print $q->start_form;
print "n";
print $q->textfield(-name=>'Mul');
print " x ";
print $q->textfield(-name=>'Mult');
print " ",$q->submit;

}

sub main{
&here;
print "


$n x $m = $final ";

}
print $q->end_form;

######################


$an = $q->param('aMul');
$am = $q->param('aMult');
$afinal = $an - $am;


if ($a eq "amul"){
&amain;
}
if ($a eq ""){
&ahere;
}

sub ahere{
print $q->start_form;
print "n";
print $q->textfield(-name=>'aMul');
print " - ";
print $q->textfield(-name=>'aMult');
print " ",$q->submit;

}

sub amain{
&ahere;
print "


$an - $am = $afinal ";

}
print $q->end_form;

########################

$bn = $q->param('bMul');
$bm = $q->param('bMult');
$bo = $q->param('boMult');
$final = $bn * $bm - $bo;


if ($a eq "bmul"){
&bmain;
}
if ($a eq ""){
&bhere;
}

sub bhere{
print $q->start_form;
print "n";
print $q->textfield(-name=>'bMul');
print " x ";
print $q->textfield(-name=>'bMult');
print " - ";
print $q->textfield(-name=>'boMult');
print " ",$q->submit;

}

sub bmain{
&bhere;
print "


$bn x $bm - $bo = $bfinal ";

}
print $q->end_form;

######################

print $q->end_html;
=============================================
Posted By: zanardi Re: a script (that to your surprise DOES work) - 11/07/2000 11:11 PM
Nah that's middle school math. Im talking about scripts for Algebra 2 and higher [Linked Image]

------------------
ZCom Bulletin Boards - Open Source Bulletin Boards
Posted By: Em8 Re: a script (that to your surprise DOES work) - 11/07/2000 11:43 PM
pre-school actualy. I just made it because... well... I don't know why I made it.
Quote
quote:
Is that the "Programming Perl, 3rd Edition" by O'Reilly or a different one by them?

------------------

Wartortle

I'm supposed to put somthin here? wink

Posted By: Em8 Re: a script (that to your surprise DOES work) - 11/08/2000 4:23 AM
Yea, its the third edition. Is that bad or somthing?

------------------
*
***
%###*###%
->>>Em8<<<-
No it's great. But...you could of got it for $21 cheaper than what you paid.

--mark
Oh Oh, tell me [Linked Image]

------------------
ZCom Bulletin Boards - Open Source Bulletin Boards
Posted By: Em8 Re: a script (that to your surprise DOES work) - 11/08/2000 11:20 PM
madNo!!! I saved up for weeks!!!!!!mad

------------------
*
***
%###*###%
->>>Em8<<<-
Any computer books you buy, you should buy from http://www.bookpool.com/ as they are Soooooooooooooooo much cheaper than anywhere else.

Programming Perl 3rd edition was $49 from O'reiley, $39 from Amazon, and like $28 or $29 from Bookpool. I was mad because I didn't discover bookpool til the day that my Prog Perl arrived from O'reilly.

Since then though, I've probably bought another $200 or $300 worth of stuff from Bookpool, including one book that i had to return for a replacement because it was bound upside down.

Got personal service from them, not just a response-bot. They've been great. Wish I could have known about them 3 years ago... would have saved tons of money.

Check out any of the oreilly titles there and compare... way cheap! [Linked Image]

--mark
Quote
quote:
No its not bad I just wanted to know cause I
was thinking about getting it.



------------------

Wartortle

I'm supposed to put somthin here? wink

Posted By: empire Re: a script (that to your surprise DOES work) - 11/09/2000 4:52 AM
we're doing the same things in fundamentals of programming (in school). Only with true basic, which SUCKS.

Code
code:

------------------
-david

www.antipopculture.org
I just ordered it (it better be good)... I
should get it Friday or Saturday... I tell
you what I think when I get it.

------------------

Wartortle

I'm supposed to put somthin here? wink

I can't wait!

------------------

Wartortle

I'm supposed to put somthin here? wink
Quote
quote:
You think thats bad we HAVE to "learn" to use the internet!

(1st thing we learned was how to click a link)

------------------
Wartortle

I'm supposed to put somthin here? wink
That was like, really dumb. I can program perl in -wT with CGI.pm and many functional coding, and they tought me how to use Netscrape. BAH!

ROFLMAO!

------------------
UBBDEV Moderator
OCCUPATION: Programmer, webmaster.

Hack Developer of the Ultimate Bulletin Board. I am not an employee of Infopop

Due to time limitation, I do not offer support Via. E-mail. Please post on the forums.

Sincerely,
MasterMind
We hadda use Netscrape too. I happy cause
todays the last day I have that class! The
only thing I'll miss about that clas is
correcting the teacher [Linked Image] (I should've been
the one teaching he had no clue how to work
the internet)

------------------
Wartortle

I'm supposed to put somthin here? wink
My comp teacher is a small male bald geek, who programs Visual Basic programs that are perfectly useless. He made a visual basic calculator and tries to sell it. I made a C++ calculator and actually included the source code in the release.

He is a LOSER.

------------------
UBBDEV Moderator
OCCUPATION: Programmer, webmaster.

Hack Developer of the Ultimate Bulletin Board. I am not an employee of Infopop

Due to time limitation, I do not offer support Via. E-mail. Please post on the forums.

Sincerely,
MasterMind
Posted By: Em8 Re: a script (that to your surprise DOES work) - 11/11/2000 3:41 PM
My computer teacher is a she, and she dosen't know much about HTML (HA ha ha ha!). She has a web site about eye sight.

------------------
*
***
%###*###%
->>>Em8<<<-
Well mine he just reads from a book telling
us waht to do, and he cant understand what
the book is telling him!

------------------
Wartortle

I'm supposed to put somthin here? [Linked Image]


This message has been edited by Wartortle on November 11, 2000 at 09:38 AM
Posted By: eon Re: a script (that to your surprise DOES work) - 11/12/2000 1:55 AM
http://www.bestweb.net/~bobp/theCONSOLE/control.cgi
http://www.bestweb.net/~bobp/theCONSOLE/theCONSOLE.zip -source

im not listing the source here, cause its 1600 lines. [Linked Image] oh, on the site the username is admin5 and the password is 4tugboat.

its a nice little script i made in my spare time to display and edit a playlist for a local television station online. viewer.cgi is for use with ssi to include in a page.

i really did this progect to learn perl. i didnt use a book, cause im cheep [Linked Image],

------------------
assistant administrator- UBB Code Hackers Hideout
moderator- Perl and CGI Scripts and Programming

AIM: NtEon
ICQ: 70520947
email: eon@ubbcodehacking.com
OMG! Perl to do math problems in school?!?!?!? I remember saving up for that top of the line $100 Texas Instruments calculator that had the fancy dancy roll of tape that printed out. Oh, how things have changed, ACK!

------------------
Webmaster
http://www.izmirhigh.com/index.shtml
http://home.flash.net/~murgnam/
Quote
quote:
*LOL* Nope, you still are recomended to have at least a TI-82 for Algerbra I



------------------
Da Wannabe Cannuck

:: Who is Andy?
Posted By: Ghoste Re: a script (that to your surprise DOES work) - 11/12/2000 2:48 AM
hehe.. [Linked Image]

-Ghoste

------------------
Liquid FX Design.com
-------------------
© UBB.Developers