WODA: FAQs

 Related Files

I've defined a common table but it doesn't work?
Perl compiles code sequentially. You'll get caught in a common beginners trap if you've defined a common table, e.g. defaults.pl, and you define it as the requireFile like so:
---------
$WBB{'requireFile'} = '/library/webserver/settings/woda/defaults.pl';
...
...
# WBF Definition
# etc
$WBF{$x,'picture'} = '&QRY(users,$_)';
...

require $WBB{'requireFile'} if $WBB{'requireFile'};
do main();
-------------------------------

Because the common table isn't called into the database until after you have defined all of your variables - and because PERL makes do when variables aren't defined - the QRY fails because it can't find the table named 'users'. To avoid this trap you must require a common table before you start to define variables that depend on the code it contains.
modify the informationdelete entire recordexplain the meaning of the fieldsbrowse recordsAdd a new questionHome page of this databaselogin Valid HTML 4.01 Transitional Valid CSS! Powered by WODA 4.6x trunk