in reply to Perl TK Problem!
The syntax for passing subroutine parameters in Tk is slightly different form the standard Perl method.
Try removing the () fromm the params, and separate them with commas. Like:
To check what is getting thru, print @_ in your sub. Like:sub{[&createAccount,$txtNewUName,$txtNewName,$txtNewPassword]}
You should start to see what is going on.sub createAccount { my @in = @_; print Dumper(@_); my( $Username_arr, $Name_arr, $Password_arr, $PassCheck_arr, .... ..... ..... }
|
|---|