Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision fec8a289

Von Bernd Blessmann vor mehr als 12 Jahren hinzugefügt

  • ID fec8a289199f43b9c24e87c5d75e0d17b85b5cf9
  • Vorgänger 7c7d58eb
  • Nachfolger 6920de21

join richtig benutzen.

Und perldoc sagt noch:
Beware that unlike split, join doesn't take a pattern as its first argument.

Unterschiede anzeigen:

bin/mozilla/do.pl
831 831

  
832 832
  #  show pricegroup in newly loaded invoice when creating invoice from delivery order
833 833
  for my $i (1 .. $form->{rowcount}) {
834
    $form->{"sellprice_pg_$i"} = join /--/, $form->{"sellprice_$i"}, $form->{"pricegroup_id_$i"};
834
    $form->{"sellprice_pg_$i"} = join '--', $form->{"sellprice_$i"}, $form->{"pricegroup_id_$i"};
835 835
  }
836 836
  IS->get_pricegroups_for_parts(\%myconfig, \%$form);
837 837
  set_pricegroup($_) for 1 .. $form->{rowcount};
......
937 937

  
938 938
  #  show pricegroup in newly loaded invoice when creating invoice from delivery order
939 939
  for my $i (1 .. $form->{rowcount}) {
940
    $form->{"sellprice_pg_$i"} = join /--/, $form->{"sellprice_$i"}, $form->{"pricegroup_id_$i"};
940
    $form->{"sellprice_pg_$i"} = join '--', $form->{"sellprice_$i"}, $form->{"pricegroup_id_$i"};
941 941
  }
942 942
  IS->get_pricegroups_for_parts(\%myconfig, \%$form);
943 943
  set_pricegroup($_) for 1 .. $form->{rowcount};

Auch abrufbar als: Unified diff