Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > How to use two or more question in function if ?

Reply
Thread Tools

How to use two or more question in function if ?

 
 
Tamara
Guest
Posts: n/a
 
      05-08-2004
How to use two or more question in function if ?
E.g.
If a=0 and b=20 then print "a=o and b=20"




 
Reply With Quote
 
 
 
 
Gregory Toomey
Guest
Posts: n/a
 
      05-08-2004
Tamara wrote:

> How to use two or more question in function if ?
> E.g.
> If a=0 and b=20 then print "a=o and b=20"


print "a=0 and b=20" if $a==0 && $b==20

gtoomey
 
Reply With Quote
 
 
 
 
Tore Aursand
Guest
Posts: n/a
 
      05-09-2004
On Sat, 08 May 2004 05:28:25 +0200, Tamara wrote:
> How to use two or more question in function if ?
> E.g.
> If a=0 and b=20 then print "a=o and b=20"


Why do you want to write 'a=o'? It would have made more sense if you
would write 'a=0';

if ( $a == 0 and $b == 0 ) {
print 'a=o and b=20';
}


--
Tore Aursand <(E-Mail Removed)>
"There are three kinds of lies: lies, damn lies, and statistics."
(Benjamin Disraeli)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How to compare two SOAP Envelope or two Document or two XML files GenxLogic Java 3 12-06-2006 08:41 PM
Kamaelia 0.4.0 RELEASED - Faster! More Tools! More Examples! More Docs! ;-) Michael Python 4 06-26-2006 08:00 AM
write a function such that when ever i call this function in some other function .it should give me tha data type and value of calling function parameter komal C++ 6 01-25-2005 11:13 AM
substitute two ore more with two or more Robert Wallace Perl Misc 1 12-31-2003 05:13 PM



Advertisments