Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Sep 2000
Posts: 138
Em8
Offline
Member
Member
Offline
Joined: Sep 2000
Posts: 138
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!

Sponsored Links
Joined: Oct 2000
Posts: 15
Member
Member
Offline
Joined: Oct 2000
Posts: 15
just what does this do?

Joined: Sep 2000
Posts: 138
Em8
Offline
Member
Member
Offline
Joined: Sep 2000
Posts: 138
Oh ya [Linked Image], you enter two numbers and then it multiplies them!

------------------
Quote
quote:
-That guy was an ideot!

Joined: May 2000
Posts: 243
Member
Member
Offline
Joined: May 2000
Posts: 243
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

Joined: Sep 2000
Posts: 138
Em8
Offline
Member
Member
Offline
Joined: Sep 2000
Posts: 138
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;
=============================================

Sponsored Links
Joined: May 2000
Posts: 243
Member
Member
Offline
Joined: May 2000
Posts: 243
Nah that's middle school math. Im talking about scripts for Algebra 2 and higher [Linked Image]

------------------
ZCom Bulletin Boards - Open Source Bulletin Boards

Joined: Sep 2000
Posts: 138
Em8
Offline
Member
Member
Offline
Joined: Sep 2000
Posts: 138
pre-school actualy. I just made it because... well... I don't know why I made it.

Joined: Oct 2000
Posts: 38
Member
Member
Offline
Joined: Oct 2000
Posts: 38
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



Wartortle

I'm supposed to put somthin here? wink
Joined: Sep 2000
Posts: 138
Em8
Offline
Member
Member
Offline
Joined: Sep 2000
Posts: 138
Yea, its the third edition. Is that bad or somthing?

------------------
*
***
%###*###%
->>>Em8<<<-

Joined: Sep 2000
Posts: 755
P.I.T.A. / Programmer
P.I.T.A. / Programmer
Offline
Joined: Sep 2000
Posts: 755
No it's great. But...you could of got it for $21 cheaper than what you paid.

--mark


"Annnnnnnndd now, opening for Iron Maiden...... WYLD STALLYNS!!!" --Bill S. Preston, Esquire and Ted "Theodore " Logan
Sponsored Links
Joined: May 2000
Posts: 243
Member
Member
Offline
Joined: May 2000
Posts: 243
Oh Oh, tell me [Linked Image]

------------------
ZCom Bulletin Boards - Open Source Bulletin Boards

Joined: Sep 2000
Posts: 138
Em8
Offline
Member
Member
Offline
Joined: Sep 2000
Posts: 138
madNo!!! I saved up for weeks!!!!!!mad

------------------
*
***
%###*###%
->>>Em8<<<-

Joined: Sep 2000
Posts: 755
P.I.T.A. / Programmer
P.I.T.A. / Programmer
Offline
Joined: Sep 2000
Posts: 755
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


"Annnnnnnndd now, opening for Iron Maiden...... WYLD STALLYNS!!!" --Bill S. Preston, Esquire and Ted "Theodore " Logan
Joined: Oct 2000
Posts: 38
Member
Member
Offline
Joined: Oct 2000
Posts: 38
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



Wartortle

I'm supposed to put somthin here? wink
Joined: Aug 2000
Posts: 469
Member
Member
Offline
Joined: Aug 2000
Posts: 469
we're doing the same things in fundamentals of programming (in school). Only with true basic, which SUCKS.

Code
code:

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

www.antipopculture.org

Joined: Oct 2000
Posts: 38
Member
Member
Offline
Joined: Oct 2000
Posts: 38
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



Wartortle

I'm supposed to put somthin here? wink
Joined: Oct 2000
Posts: 38
Member
Member
Offline
Joined: Oct 2000
Posts: 38
I can't wait!

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

Wartortle

I'm supposed to put somthin here? wink


Wartortle

I'm supposed to put somthin here? wink
Joined: Oct 2000
Posts: 38
Member
Member
Offline
Joined: Oct 2000
Posts: 38
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


Wartortle

I'm supposed to put somthin here? wink
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
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

Joined: Oct 2000
Posts: 38
Member
Member
Offline
Joined: Oct 2000
Posts: 38
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


Wartortle

I'm supposed to put somthin here? wink
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
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

Joined: Sep 2000
Posts: 138
Em8
Offline
Member
Member
Offline
Joined: Sep 2000
Posts: 138
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<<<-

Joined: Oct 2000
Posts: 38
Member
Member
Offline
Joined: Oct 2000
Posts: 38
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


Wartortle

I'm supposed to put somthin here? wink
Joined: May 2000
Posts: 15
eon Offline
Junior Member
Junior Member
Offline
Joined: May 2000
Posts: 15
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


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

AIM: NtEon
ICQ: 70520947
email: eon@ubbcodehacking.com
Joined: Aug 2000
Posts: 39
Member
Member
Offline
Joined: Aug 2000
Posts: 39
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/

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Quote
quote:
*LOL* Nope, you still are recomended to have at least a TI-82 for Algerbra I



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

:: Who is Andy?

Joined: Oct 2000
Posts: 76
Member
Member
Offline
Joined: Oct 2000
Posts: 76
hehe.. [Linked Image]

-Ghoste

------------------
Liquid FX Design.com
-------------------


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)