[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

[ID 20000118.006] Second attempt at bug report -- first one bounced




Perl thinks "$ VARIABLE" is "$VARIABLE"

Initial report bounced at perl.com -- bounce messages appended to end.
-------

Return-Path: <rep>
Received: (from rep@localhost)
        by genrad.com (8.9.3/8.9.3) id MAA03757;
        Wed, 12 Jan 2000 12:53:11 -0500
Date: Wed, 12 Jan 2000 12:53:11 -0500
From: pete peterson <rep>
Message-Id: <200001121753.MAA03757@genrad.com>
To: perlbug@perl.com
Subject: Perl thinks "$ VARIABLE" is "$VARIABLE"
Reply-To: petersonp@genrad.com


This is a bug report for perl from petersonp@genrad.com,
generated with the help of perlbug 1.26 running under perl 5.00503.


-----------------------------------------------------------------
[Please enter your report here]


Given the following simple test:
   % perl -e '$OS="foo"; print "$ OS,$OS\n"'
   foo,foo
I would have expected the output to be '$ OS,foo'

I discovered this when I had a script with a here document containing
the line:
----
$ OS($treeout) OL($treeout) FLAGFAIL;
---
When it printed out, the "$ OS" was missing.  I fixed it, of course, by
backslashing the dollar-sign, and did the above tiny test to understand
how Perl was interpreting this.

Is this a bug?  Is there something in TFM that I should R to understand
this behavior?  Note that either 'print $ VAR' or 'print "$ VAR"' act
this way.  'print % VAR' and 'print @ VAR' are similar whereas
'print "% VAR"' and 'print "@ VAR"' interpret the @/% literally.


pete peterson
petersonp@genrad.com
rep@genrad.com
978-589-7478

[Please do not change anything below this line]
-----------------------------------------------------------------

---
Site configuration information for perl 5.00503:

Configured by root at Mon Aug 30 23:08:56 EDT 1999.

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
  Platform:
    osname=linux, osvers=2.2.5-22smp, archname=i386-linux
    uname='linux porky.devel.redhat.com 2.2.5-22smp #1 smp wed jun 2 09:11:51 ed
t 1999 i686 unknown '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='cc', optimize='-O2', gccversion=egcs-2.91.66 19990314/Linux (egcs-1.1.2 
release)
    cppflags='-Dbool=char -DHAS_BOOL -I/usr/local/include'
    ccflags ='-Dbool=char -DHAS_BOOL -I/usr/local/include'
    stdchar='char', d_stdstdio=undef, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -ldl -lm -lc -lposix -lcrypt
    libc=, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:
    

---
@INC for perl 5.00503:
    /usr/lib/perl5/5.00503/i386-linux
    /usr/lib/perl5/5.00503
    /usr/lib/perl5/site_perl/5.005/i386-linux
    /usr/lib/perl5/site_perl/5.005
    /usr/lib/perl5/site_perl/5.005
    .

---
Environment for perl 5.00503:
    HOME=/home/rep
    LANG=en_US
    LANGUAGE (unset)
    LC_ALL=en_US
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/rep/bin
    PERL_BADLANG (unset)
    SHELL=/bin/bash

--QAA03812.947711607/genrad.com--


**********************************************************************
This is the info from the prior attempt that bounced from perl.com
**********************************************************************

From MAILER-DAEMON  Wed Jan 12 16:13:27 2000
Return-Path: <MAILER-DAEMON>
Received: from localhost (localhost)
        by genrad.com (8.9.3/8.9.3) with internal id QAA03812;
        Wed, 12 Jan 2000 16:13:27 -0500
Date: Wed, 12 Jan 2000 16:13:27 -0500
From: Mail Delivery Subsystem <MAILER-DAEMON>
Message-Id: <200001122113.QAA03812@genrad.com>
To: rep
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
        boundary="QAA03812.947711607/genrad.com"
Subject: Returned mail: User unknown
Auto-Submitted: auto-generated (failure)

This is a MIME-encapsulated message

--QAA03812.947711607/genrad.com

The original message was received at Wed, 12 Jan 2000 12:53:11 -0500
from rep@localhost

   ----- The following addresses had permanent fatal errors -----
perlbug@perl.com

   ----- Transcript of session follows -----
... while talking to mail.perl.com.:
>>> RCPT To:<perlbug@perl.com>
<<< 550 <perlbug@perl.com>... User unknown
550 perlbug@perl.com... User unknown

--QAA03812.947711607/genrad.com
Content-Type: message/delivery-status

Reporting-MTA: dns; genrad.com
Arrival-Date: Wed, 12 Jan 2000 12:53:11 -0500

Final-Recipient: RFC822; perlbug@perl.com
Action: failed
Status: 5.1.1
Remote-MTA: DNS; mail.perl.com
Diagnostic-Code: SMTP; 550 <perlbug@perl.com>... User unknown
Last-Attempt-Date: Wed, 12 Jan 2000 16:13:26 -0500

--QAA03812.947711607/genrad.com
Content-Type: message/rfc822


[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]