Thanks a ton to all.

On Sat, 24 Jan 2004, drieux wrote:

> 
> On Jan 23, 2004, at 5:24 PM, wolf blaum wrote:
> 
> > For Quality purpouses, Ajey Kulkarni 's mail on Saturday 24 January 
> > 2004 17:52
> > may have been monitored or recorded as:
> >
> >> 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";
> [..]
> 
> forgive me for being 'pedantic' but
> given the sequence
> 
>       foreach my $filename (@list_of_file_names)
>       {
>               open(NEWFH, "> ${filename}.new" ) or die "new $filename err:$!";
>               ....
> 
>       }
> 
> One has 'less ambiguity' using the curley braces around
> the variable name so that it will KNOW without a doubt
> that one really means that to be the variable should
> suffice -  It really becomes important when you want
> to concatenate without things like a "." between tokens
> 
>       foreach my $start (@entree) {
>               foreach my $phrase (@list_of_sillies) {
>                       my $freak = "${start}Buzz${phrase}here";
>                       rhetorical_devices($freak);
>               }
>       }
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
> 
> 
> 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to