SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-Getopt-CallingName rpm build for : openSUSE Tumbleweed. For other distributions click perl-Getopt-CallingName.

Name : perl-Getopt-CallingName
Version : 1.18 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : 6.70 Date : 2024-08-05 18:12:37
Group : Development/Libraries/Perl Source RPM : perl-Getopt-CallingName-1.18-6.70.src.rpm
Size : 0.01 MB
Packager : (none)
Summary : Script duties delegation based upon calling name
Description :
Sometimes you can have a script that can run in two or more \'modes\' of
operation. Apart from an option to specify the mode, the command line
options are the same/very similar. Much of the code used by the various
modes is common.

As an application user interface decision, it may be more useful/helpful to
be able to call the script by two or more names - i.e. one for each mode.
This cuts out the command line option for specifying the mode.

In some cases it might be appropriate just to move all the code, or at
least all the common code, into a module and have separate wrapper perl
scripts. The problem with this approach is either you end up duplicating
command line option handling in each of the wrapper scripts or you end up
moving the command line option handling into a module also. The former case
introduces maintenance burden [or perhaps an excuse to use TT2 to generate
your wrappers ;-)]. The latter case can feel like a distortion/displacement
of the code.

Getopt::CallingName provides another alternative. The idea is that you
create symbolic links to your actual script (which you might want to give a
generic name). Each symbolic link corresponds to the name/mode with which
you call the script. Within your script, after any common setup/options
handling you call subroutine call_name to call the appropriate script
subroutine for the mode.

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-G/openSUSE_Tumbleweed/noarch

Content of RPM  Provides Requires

Download
ftp.icm.edu.pl  perl-Getopt-CallingName-1.18-6.70.noarch.rpm
     

Provides :
perl(Getopt::CallingName)
perl-Getopt-CallingName

Requires :
perl(:MODULE_COMPAT_5.40.0)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsZstd) <= 5.4.18-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.40.0/Getopt
/usr/lib/perl5/vendor_perl/5.40.0/Getopt/CallingName.pm
/usr/share/doc/packages/perl-Getopt-CallingName
/usr/share/doc/packages/perl-Getopt-CallingName/Changes
/usr/share/doc/packages/perl-Getopt-CallingName/README
/usr/share/man/man3/Getopt::CallingName.3pm.gz

 
ICM