> -----Original Message----- > From: Nikola Janceski [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 24, 2002 4:25 PM > To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] > Subject: RE: Setting a Variable to String with \n? > > > AFAIK... you win some, and you lose some. I never knew of > such a way, but > using <<END and END really makes it look that ugly? what > about \b after each > tab?.... I don't know. Or how about a substitution after you > assign the var? > $var =~ s/^[\t\s]+//g; > > > -----Original Message----- > > From: Michael Norris [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, April 24, 2002 4:18 PM > > To: [EMAIL PROTECTED] > > Subject: RE: Setting a Variable to String with \n? > > > > > > Ok, > > > > But what if I'm doing an elsif and my code is indented such as: > > elsif ($string == 1) { > > $string = This is the text I want > > But I also want this text on next line. > > > > Is there a way to ignore the white space before the "But I > > also want this text on the next line?" Otherwise I would > > have to do the following: > > > > elsif ($string == 1) { > > $string = > > This is the text I want. > > But I also want this text on the next line. > > > > > > This may be trivial, but I'm just trying to make my code look > > some what neat. > > > > Thanks for the help.
This evidently is going to be addressed in Perl6 (with respect to here-docs). cf. http://dev.perl.org/perl6/apocalypse/2 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]