Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!bmc!kuling!jand From: jand@kuling.UUCP (Jan Dj{rv) Newsgroups: comp.lang.perl Subject: Command substitution or Common novice bug Message-ID: <1460@kuling.UUCP> Date: 27 Mar 90 09:37:18 GMT Reply-To: jand@kuling.UUCP (Jan Dj{rv) Organization: Dept. of Computer Systems, Uppsala University, Sweden Lines: 22 Should command substitution work inside double quotes? It sure doesn't for me: % perl -e 'print "`date` ", `date`, "\n";' `date` Tue Mar 27 10:50:02 METDST 1990 Is there any reason for this behaviour? As an seasoned shell programmer I often make this mistake. This is my most common novice bug (I never seem to learn...) and I'm sure others who program in shell make the same mistake. Can't perl change in this respect (please). BTW, perl -v: $Header: perly.c,v 3.0.1.4 90/02/28 18:06:41 lwall Locked $ Patch level: 15 Copyright (c) 1989, Larry Wall Perl may be copied only under the terms of the GNU General Public License, a copy of which can be found with the Perl 3.0 distribution kit. Jan D.