I can't speak for gellyfish. Once upon a time that was a popular way to do constants in Perl, though. The pragmas haven't always been around, and not changing an upper-cased variable just by convention often doesn't cut it. By making it returned from a sub, you can make it really constant without pragmas.