For Quality purpouses, Ajey Kulkarni 's mail on Saturday 24 January 2004 17:52 may have been monitored or recorded as:
hi,.
hi
i would like to quickly append a string to a variable.
open NEWFH, "> $filename.new" or die "new procmailrc err"; where $filename has /tmp/xyz
Anything really silly here??
Nothing I didnt do wrong at least a thousand times:
open NEWFH, "> $filename".".new" or die "new procmailrc err";
will do it. ------------ perldoc perlop: Gory details of parsing quoted constructs
When presented with something that might have several dif- ferent interpretations, Perl uses the DWIM (that's "Do What I Mean") principle to pick the most probable inter- pretation. This strategy is so successful that Perl pro- grammers often do not suspect the ambivalence of what they write. But from time to time, Perl's notions differ sub- stantially from what the author honestly meant. -------------
This is one of the latter cases.
Wolf
Not sure I see why adding a concatenation helped? The OP's code works fine in my 5.8.0 RH 9.0 install and the dot isn't significant within the double quotes since it isn't a property or namespace token separator like in other languages. Is this version dependent, or maybe UTF-8 related?
http://danconia.org
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>