in reply to declare/initialize variables at bottom of script?
If you want to keep strictness, you have to declare them before their first use. Again, you could employ the BEGIN bock trick to assign their initial values at the end of the script.no strict; no warnings; some_operation_on($abc); ... BEGIN { $abc = 'foo'; }
|
|---|