<?xml version="1.0" encoding="windows-1252"?>
<node id="989197" title="Bareword rules?" created="2012-08-23 00:55:15" updated="2012-08-23 00:55:15">
<type id="115">
perlquestion</type>
<author id="974476">
cheekuperl</author>
<data>
<field name="doctext">
Hi monks, &lt;br&gt;
Are there any rules for bareword to string conversion? I am perplexed to see different behaviors as below:
&lt;code&gt;
$ perl -e 'print cat'   # Doesn't print anything. But 1 bareword is OK
$ perl -e 'print cat dog' #Doesnt like two barewords
Can't locate object method "cat" via package "dog" at -e line 1.
$ perl -e 'print reverse cat' #Prints cat. OK with one again.
cat$ perl -e 'print reverse cat dog' # Still hates two
Can't locate object method "cat" via package "dog" at -e line 1.
&lt;/code&gt;
This is perl, version 5.004_04 
</field>
</data>
</node>
