CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Need a Custom or Prewritten Perl Program?: I need a program that...: Re: [hmida] transform If-then-else statemt to ?: opeator statement: Edit Log



Zhris
Enthusiast

Nov 12, 2010, 3:32 AM


Views: 2389
Re: [hmida] transform If-then-else statemt to ?: opeator statement

Hi,

Do all the conditional blocks have a regular format, or does it vary e.g.


Code
if ($true) {      
$name = 'Peter';
}

is different from:

Code
if($true){$name='Peter';}

And is even more different from:

Code
if ((!defined $hash{$key}) and ($hash{'default'} == 9)) {    
$name = 'Peter';
$age = 40;
}


Chris


(This post was edited by Zhris on Nov 12, 2010, 3:38 AM)


Edit Log:
Post edited by Zhris (Enthusiast) on Nov 12, 2010, 3:33 AM
Post edited by Zhris (Enthusiast) on Nov 12, 2010, 3:36 AM
Post edited by Zhris (Enthusiast) on Nov 12, 2010, 3:36 AM
Post edited by Zhris (Enthusiast) on Nov 12, 2010, 3:38 AM
Post edited by Zhris (Enthusiast) on Nov 12, 2010, 3:38 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives