Skip to content

This repository is for Perl. Practice is done on some basic concept of Perl. Learned methods are applied to create the mini project.

Notifications You must be signed in to change notification settings

Yaduvanshi05Bhupendra/Perl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Perl Practice and Projects


perl

Index

Perl-Practice

Perl-Datatype

Control-structure

Perl-Pakages

Subroutines

Directories

Perl-mini-Projects

Following are the Perl projects

  1. Rot13-Cipher

  2. Overview

Rot13 is an encryption method in which each of the 26 characters a-z or A-Z is replaced by the character 13 places ahead or 13 places back in the alphabet. Write a Perl program that reads a series of text and outputs the rot13 equivalent.

  • Input to rot13: This sentence is to be converted in Rot13 Format. Hangon.

  • Output of rot13: Guvf fragrapr vf gb or pbairegrq va Ebg13 Sbezng. Unatba.

  1. Output


For code please click here Solution

  1. Even-Odd-vehical-on-Even-Odd-day

Problem statement:

a. The government has introduced a road rationing system by imposing the ‘odd-even’ rule. On even dates, only cars with license plates ending with an even number will be allowed on the city roads. On odd dates cars with license plates ending with odd number will be allowed. Write a PERL script that will help to create a file containing records of all cars in the city. The input data should be entered while running the script. The file should contain 20 entries in the following format

Name Registration Number
Rahul TN02BC9906
Ganesh TN01AC1525

b. Write a PERL script that will accept the date as input and determine from the above file, the cars that would be permitted on the road on that day based on the odd-even rule. The output should display the name and registration number of the permitted vehicles.

Solution:

Step followed

a. Data Input

b. Creating file to store data

c. Sorting on the basis of Even and Odd

d. Creating new file to store evan and odd registration number speratly

Perl type used File handling, Regural expression, Control stucuture, Looping construct, Standard I\O

For code please click here Solution

Note: I'm beginner please suggest any improvement 😁

Misc

Perl-Installation

Credits

Contributing

Contributions are welcome! For bug reports or requests please submit an issue.

Contact-Info

Feel free to contact me to discuss any issues, questions, or comments.

Licence

This repository contains a variety of content; developed by Bhupendra Kumar Yadav, and some from third-parties. The third-party content is distributed under the license provided by those parties.

The content developed by Bhupendra Kumar Yadav is distributed under the following license:

I am providing code and resources in this repository to you under an open source license.

Copyright 2015 Bhupendra Kumar Yadav

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

This repository is for Perl. Practice is done on some basic concept of Perl. Learned methods are applied to create the mini project.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages