Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Tk Entry widget confusion

by hippo (Archbishop)
on Jul 12, 2024 at 10:54 UTC ( [id://11160562]=note: print w/replies, xml ) Need Help??


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'!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11160562]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-09-07 13:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.