>>>>> "Joe" == Joe Schulman <[EMAIL PROTECTED]> writes:

>> print A "$ENV{'HTTP_REFERRER'}\n";

Joe> I'm no where near being an expert at perl (and know even less about the rules for 
file I/O), but I'm pretty sure two things could be
Joe> wrong here:
Joe> 1) The "$ENV{'HTTP_REFERRER')\n"; part for sure doesn't work because it's only 
interpolated this way if $ENV = "Joe" (for example's
Joe> sake):

Joe> The file A would have this written in it:
Joe> "Joe('HTTP_REFERRER')"

Joe> I'm not that good at explaining things, but perl can't interpolate things like 
that.

Nope, that's not it.

    %last_name = qw(fred flintstone barney rubble);
    print "fred's last name is $last_name{'fred'}\n";

works just fine.  Perl can interpolate scalars, array elements,
array slices, entire arrays, hash elements and hash slices into
double quoted strings.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Reply via email to