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: Perl Programming Help: Beginner: Re: [terrykhatri531] How to implement a checkbox that will send data to db: Edit Log



Zhris
Enthusiast

Jul 10, 2014, 4:47 AM


Views: 32361
Re: [terrykhatri531] How to implement a checkbox that will send data to db

Hi Terry,

When I say true or false I am speaking figuratively. Its entirely up to you what values you use as long as you handle them appropriately. But my choice would be to use 0 for false and 1 for true for the reasons above.

Examples of true values in Perl:

Code
true 
1
anystring
(1 or more spaces)

Examples of false values in Perl:

Code
0 
undef
(blank/nothing)


Regards,

Chris


(This post was edited by Zhris on Jul 10, 2014, 4:48 AM)


Edit Log:
Post edited by Zhris (Enthusiast) on Jul 10, 2014, 4:48 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