Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: The most annoying common way to get a string literal in Perl is...

by Skeeve (Parson)
on Jul 12, 2004 at 21:33 UTC ( #373740=note: print w/replies, xml ) Need Help??


in reply to Re: The most annoying common way to get a string literal in Perl is...
in thread The most annoying common way to get a string literal in Perl is...

I voted for bareword too. But I don't consider one => 'un' as being bareword as => explicitly (AFAIK) defines the word to it's left as being quoted.

OTOH I render $en2fr{one} as being use of a bareword which I absolutely dislike. Consider this example and tell me without testing it's output:
$umask= umask; $hash{$umask}='umask value'; $hash{'umask'}='umask text'; print $hash{umask};
  • Is the output 'umask text'?
    How can you make sure it will be 'umask value'?
  • Or is the output 'umask value'?
    How can you make sure it will be 'umask text'?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2020-01-18 20:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?