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

Re: tpm2licenses



On Mit, 26 Apr 2006, Frank Küster wrote:
> case $debian_package in
>   tetex-base)
>     bla
>     ;;
>   ...
> esac
> 
> but since there's no case statement in Perl, I did
> 
> for ($debian_package) {

  $_ = $debian_package;
  if (/tetex-base/) { ...

However. Now I understand what you wanted to do.

> If you prefer, change it to foreach, they are synonyms.

No, I only thought there might be some magic
	$debian_package = "tetex-base tetex-bin tetex-source";
where the script works on more packages at the same time.

Closed discussion.

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <preining AT logic DOT at>             Università di Siena
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
BRADWORTHY
One who is skilled in the art of naming loaves.
			--- Douglas Adams, The Meaning of Liff



Reply to: