[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] do... while?



Ariel Scolnicov wrote:
> 
> I'd still like to claim that the only use for hungarian notation in
> Perl is to write
> 
> 	$sStr = 'a string';
> 	$szStr = $sStr . '0';
> 	$pszStr = \$szStr;

Strings and numbers are transparently converted; and null-terminated
perl strings are rare thing indeed.  (Btw, that should be "\0", not
'0', above.)
But ref types are strongly enforced; that's why I usually do

	$some_sr = \$s;
	$some_ar = \@a;
	$some_hr = \%h;

I think the postfix "hungarian" is much more nicer.


> That's &bCheckIfThisIsAnAceFile(), if you don't mind.

Well, *I* mind; it should actually be

	is_ace_file()

John Porter


==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe