Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^2: Tk::waitVariableX - AUTOLOAD failed

by jowe (Sexton)
on Apr 09, 2013 at 15:32 UTC ( #1027764=note: print w/replies, xml ) Need Help??

in reply to Re: Tk::waitVariableX - AUTOLOAD failed
in thread Tk::waitVariableX - AUTOLOAD failed

Thanks very much. It solved the problem (dont know why).
Thanks again - jowe
  • Comment on Re^2: Tk::waitVariableX - AUTOLOAD failed

Replies are listed 'Best First'.
Re^3: Tk::waitVariableX - AUTOLOAD failed
by hdb (Prior) on Apr 09, 2013 at 15:40 UTC

    The documentation and the code of the module are looking inconsistent. The documentation says:

    $splash->waitVariableX( [$millis, $destroy_splashscreen], \$v1, \$v2} +);

    while in the code

    sub waitVariableX { use Tie::Watch; my ($parent, $millis) = (shift, shift); # @_ has list of var refs

    the arguments have different names (and probably different meaning as well).

      It is the OO Perl. The first argument is the invocant, the second argument is the interval (but according to the documentation, might as well be an array ref). The rest of the parameters are left in @_ to be used later.

      Handling the array ref:

      if (ref $millis eq 'ARRAY') { $callback = Tk::Callback->new($millis->[1]); $millis = $millis->[0]; }

      Handling the remaining variable references:

      foreach my $vref (@_) {
      لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
      The module description stems from the 'Mastering Perl/Tk' bible. Both usage formats are described as valid. I choose the more 'simple' one.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1027764]
[Corion]: Cosmic37: Ah, see perlfaq4, about How do I compute the intersection of two arrays
[Cosmic37]: I am out of practice; I use Perl for scientific programming for number crunching
[Corion]: Cosmic37: Basically, you read one file into a hash, keyed by your key, and then match the lines from the second file to that hash
[Cosmic37]: note that the two files only have datetimes which may match whereas other data per line is different format in file1 and file2 - is that really intersection?
[jedikaiti]: Hi Monks
[Corion]: Cosmic37: Well, if you want to use only parts of a line for the key, see split or whatever other mechanism to extract the key from the line
[Corion]: Hi jedikaiti!
[Cosmic37]: is there a webpage for full CB for this chat rather than side panel chat?
[Cosmic37]: thank you for advice
[Cosmic37]: peach greets jedi

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2017-06-29 16:21 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (672 votes). Check out past polls.