in reply to Query about barewords
"clicked" may be a constant. It maybe imported when you declare to use some module.
So, currently, you don't have package "notify" declaring "active" is a constant. If I am looking different direction, forgive me please.#!/usr/bin/perl use warnings; use strict; package notify; use constant { active => 2, }; 1; package main; use constant { clicked=>1, }; print clicked . "\n"; print notify::active . "\n"; exit;
|
|---|