I guess maybe I should just break down and buy a Perl book, but I will ask here...all I have learned about Perl I have gotten from studying scripts like DBMan, Links and other scripts available on the net.
From what I see in DBMan, the way to change a page layout based on the user is with the
if ($per_admin){
}else{
}"
type statement. Can this also work with variables, like can "if ($db_uid = "default"){" be used to or is it like JavaScript "if ($db_uid == "default"){" or "if ($db_uid != "default"){".
On that same train of thought, can a field be skipped entirely if it is empty like this
if($rec{'blah'} != null){
print qq|<TR><TD>Blah</TD><TD>$rec{'blah'}</TD></TR>|;
}
any suggestions on syntax...I am coming from fluent JavaScript land, which seems very similar in ways...but not in other.
Thanks for any advice.
dB Masters
From what I see in DBMan, the way to change a page layout based on the user is with the
if ($per_admin){
}else{
}"
type statement. Can this also work with variables, like can "if ($db_uid = "default"){" be used to or is it like JavaScript "if ($db_uid == "default"){" or "if ($db_uid != "default"){".
On that same train of thought, can a field be skipped entirely if it is empty like this
if($rec{'blah'} != null){
print qq|<TR><TD>Blah</TD><TD>$rec{'blah'}</TD></TR>|;
}
any suggestions on syntax...I am coming from fluent JavaScript land, which seems very similar in ways...but not in other.
Thanks for any advice.
dB Masters