Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

perl

What are new modules and pragmata in Perl 5.3.4?

Sarvech Qadir

Perl is a widely used general-purpose programming language. It offers great services, including text manipulation, GUI development, and much more.

There were many enhancements from the Perl 5.32.0 release and the 5.34.0 release. Click here for a full list of differences between the two versions.

In this shot, let’s talk about the new modules and pragmata in Perl 5.34.0.

New modules and pragmata

ExtUtils::PL2Bat 0.004 is one of the new modules that are now part of the PERL core. We can use PL2Bat to create a batch file for running PERL scripts. This means that all the PERL scripts can easily run on the command line using just the script name.

pl2bat offers several parameters to interact with users. For example:

  • in: Mandatory argument denoting the batched script.

  • out: Output file.

  • ntargs: Using generated batch for invoking Perl. Example arguments include -x, -S, %0, %*.

  • stripsuffix: Removing any suffix from a file name.

RELATED TAGS

perl

CONTRIBUTOR

Sarvech Qadir
Copyright ©2022 Educative, Inc. All rights reserved
RELATED COURSES

View all Courses

Keep Exploring