Re: interpolation without double quotes

2018-07-05 Thread Shlomi Fish
On Thu, 5 Jul 2018 09:58:52 -0500 p...@reason.net wrote: > Many thanks to Shlomi and Uri: as always, you’ve greatly boosted my > understanding of Perl! — Rick > You're welcome. -- - Shlomi Fish http://www.shlomifish.org/ ht

Re: interpolation without double quotes

2018-07-05 Thread perl
Many thanks to Shlomi and Uri: as always, you’ve greatly boosted my understanding of Perl! — Rick > On Jul 4, 2018, at 9:35 AM, Shlomi Fish wrote: > > Hi Rick, > > On Wed, 4 Jul 2018 09:16:19 -0500 > Rick T wrote: > >> The following line works, even though I forgot to double quote the varia

Re: interpolation without double quotes

2018-07-04 Thread Shlomi Fish
Hi Rick, On Wed, 4 Jul 2018 09:16:19 -0500 Rick T wrote: > The following line works, even though I forgot to double quote the variable. > > my $student_directory = '/data/students/' . $student_id; > see http://perl-begin.org/tutorials/bad-elements/#vars_in_quotes . Perl often stringifies exp

Re: interpolation without double quotes

2018-07-04 Thread Uri Guttman
On 07/04/2018 10:16 AM, Rick T wrote: The following line works, even though I forgot to double quote the variable. my $student_directory =  '/data/students/' . $student_id; When I noticed this, I thought this was convenient: perl is trying to “do the right thing.” But I worry that leaving the