in reply to Tk Entry widget confusion

The code does what I want/expect but how? Is this just 'magic behind the curtain'?

Welcome to Perl! This is how it rolls.

Variables in Perl (including arrays, hashes, subroutines, etc.) are not strongly typed. This means that most often you do not need to worry about what is a number and what is a string, even less what is an integer and what is a float, etc.


🦛

Replies are listed 'Best First'.
Re^2: Tk Entry widget confusion
by colintu (Acolyte) on Jul 12, 2024 at 11:57 UTC
    I always have it in my mind that 'not strongly typed' means you can use them for anything. Perl takes that to a higher level it seems and uses it to mean 'automatic type and content conversion in real-time'!