Je lis le CIF (cadre Intelligence collective) source code on GitHubPourquoi y a-t-il deux signes @ dans une constante?
Dans le fichier src/lib/CIF/Generated.pm.in
j'ai vu une déclaration comme celle-
use constant PROTOCOL_VERSION => @[email protected];
Pourquoi deux à des signes@
?
package CIF;
use warnings;
use strict;
use constant VERSION => '@[email protected]@[email protected]@[email protected]@[email protected]';
our ($MAJOR_VERSION, $MINOR_VERSION, $PATCH, $META) = VERSION =~ /^(\d+)\.(\d+)\.(\d+)-?([\w\.\d]+)?$/;
use constant PROTOCOL_VERSION => @[email protected];
use constant ORG => '@[email protected]';
use constant DEFAULT_PORT => @[email protected];
use constant DEFAULT_FRONTEND_PORT => DEFAULT_PORT();
use constant DEFAULT_BACKEND_PORT => (DEFAULT_PORT() + 1);
use constant DEFAULT_PUBLISHER_PORT => (DEFAULT_PORT() + 2);
use constant DEFAULT_STATS_PUBLISHER_PORT => (DEFAULT_PORT() + 3);
our $CIF_USER = '@[email protected]';
our $CIF_GROUP = '@[email protected]';
our $BasePath = '@[email protected]';
our $LibPath = '@[email protected]';
our $EtcPath = '@[email protected]';
our $VarPath = '@[email protected]';
our $LogPath = $VarPath.'/log';
our $PidPath = $VarPath.'/run';
our $BinPath = $BasePath . '/bin';
our $SbinPath = $BasePath . '/sbin';
our $SmrtRulesPath = $EtcPath . '/rules';
our $SmrtRulesDefault = $SmrtRulesPath . '/default';
our $SmrtRulesLocal = $SmrtRulesPath . '/local';
1;
source: https://github.com/csirtgadgets/massive-octo-spice/blob/f01b0c676f653b30713dc0618324a69dd360c081/src/lib/CIF/Generated.pm.dans –
@MSU_Bulldog: Ce n'est pas parce que vous avez atteint le seuil d'expérience qui vous permet d'éditer des questions que vous devriez *. Vos changements sont terribles: veuillez les rétracter car ils gênent les meilleures modifications – Borodin