programming-examples/perl/String
2019-11-15 12:59:38 +01:00
..
%3d specifies that the integer number should be displayed with three digits.pl Initial commit 2019-11-15 12:59:38 +01:00
%.2f specifies a floating-point number with two decimal digits.pl Initial commit 2019-11-15 12:59:38 +01:00
A here-document starts on the line after the two arrows.pl Initial commit 2019-11-15 12:59:38 +01:00
A single q creates a single-quoted string.pl Initial commit 2019-11-15 12:59:38 +01:00
A very simple password checker.pl Initial commit 2019-11-15 12:59:38 +01:00
Add new line character to string.pl Initial commit 2019-11-15 12:59:38 +01:00
Alternative delimiters can be used for all four of the q constructs.pl Initial commit 2019-11-15 12:59:38 +01:00
Alternative Quotes qq, q, qw, qx.pl Initial commit 2019-11-15 12:59:38 +01:00
An example of the DATA file variable.pl Initial commit 2019-11-15 12:59:38 +01:00
Assign returning value from qw to an array.pl Initial commit 2019-11-15 12:59:38 +01:00
Backquotes and command substitution.pl Initial commit 2019-11-15 12:59:38 +01:00
Backslash Escapes in Perl2.pl Initial commit 2019-11-15 12:59:38 +01:00
Backslash Escapes in Perl.pl Initial commit 2019-11-15 12:59:38 +01:00
Calculating the length of $string.pl Initial commit 2019-11-15 12:59:38 +01:00
Calling a here document in print statement.pl Initial commit 2019-11-15 12:59:38 +01:00
Check password.pl Initial commit 2019-11-15 12:59:38 +01:00
chomp in a while statement.pl Initial commit 2019-11-15 12:59:38 +01:00
Chomp Last character removed only if a newline.pl Initial commit 2019-11-15 12:59:38 +01:00
chomp matches the input line separator defined by the $ system variable.pl Initial commit 2019-11-15 12:59:38 +01:00
Chomp the pre-set character.pl Initial commit 2019-11-15 12:59:38 +01:00
chop function deletes the character at the right end of the line of text.pl Initial commit 2019-11-15 12:59:38 +01:00
Chop function in action.pl Initial commit 2019-11-15 12:59:38 +01:00
Chop Removing the last character, regardless of what it is.pl Initial commit 2019-11-15 12:59:38 +01:00
Cleaning Up Typed Input.pl Initial commit 2019-11-15 12:59:38 +01:00
Combine string concatenation operator and string multiplication operator.pl Initial commit 2019-11-15 12:59:38 +01:00
Compare two words with cmp.pl Initial commit 2019-11-15 12:59:38 +01:00
Comparing Strings.pl Initial commit 2019-11-15 12:59:38 +01:00
Concatenate string.pl Initial commit 2019-11-15 12:59:38 +01:00
Concatenate strings.pl Initial commit 2019-11-15 12:59:38 +01:00
Concatenate the separate strings.pl Initial commit 2019-11-15 12:59:38 +01:00
Concatenate two string value in print statement.pl Initial commit 2019-11-15 12:59:38 +01:00
Concatenate two strings.pl Initial commit 2019-11-15 12:59:38 +01:00
Convert all letters of $string1 to uppercase.pl Initial commit 2019-11-15 12:59:38 +01:00
Convert all letters of $string to lowercase.pl Initial commit 2019-11-15 12:59:38 +01:00
Convert input to lowercase and uppercase.pl Initial commit 2019-11-15 12:59:38 +01:00
Convert mixed-case input.pl Initial commit 2019-11-15 12:59:38 +01:00
Convert value to character based on its ASCII code.pl Initial commit 2019-11-15 12:59:38 +01:00
Converting a string to all lowercase with the lc function.pl Initial commit 2019-11-15 12:59:38 +01:00
crypt a string.pl Initial commit 2019-11-15 12:59:38 +01:00
Define variable for Here document.pl Initial commit 2019-11-15 12:59:38 +01:00
Demonstrating the qw operator.pl Initial commit 2019-11-15 12:59:38 +01:00
Demonstration of the index function.pl Initial commit 2019-11-15 12:59:38 +01:00
Difference between chomp and chop.pl Initial commit 2019-11-15 12:59:38 +01:00
Display double quotation marks in a printed string.pl Initial commit 2019-11-15 12:59:38 +01:00
Double quote string.pl Initial commit 2019-11-15 12:59:38 +01:00
Double quote with windows file path.pl Initial commit 2019-11-15 12:59:38 +01:00
Escape character.pl Initial commit 2019-11-15 12:59:38 +01:00
Escape sequences and single double quotes.pl Initial commit 2019-11-15 12:59:38 +01:00
Escape sequences in strings.pl Initial commit 2019-11-15 12:59:38 +01:00
Field specifiers for printf.pl Initial commit 2019-11-15 12:59:38 +01:00
find the character's value by using the ord() function.pl Initial commit 2019-11-15 12:59:38 +01:00
Format by here string.pl Initial commit 2019-11-15 12:59:38 +01:00
Format Codes for the sprintf and printf Functions.pl Initial commit 2019-11-15 12:59:38 +01:00
Get the length of a string.pl Initial commit 2019-11-15 12:59:38 +01:00
Here document in a loop.pl Initial commit 2019-11-15 12:59:38 +01:00
Here document with Interpolation.pl Initial commit 2019-11-15 12:59:38 +01:00
Hexadecimal.pl Initial commit 2019-11-15 12:59:38 +01:00
How to create multiline output using the n newline character.pl Initial commit 2019-11-15 12:59:38 +01:00
index function returns the location of the first occurrence of a substring within a string.pl Initial commit 2019-11-15 12:59:38 +01:00
Insert multiple values to printf.pl Initial commit 2019-11-15 12:59:38 +01:00
Interpolcation inside scalar variable.pl Initial commit 2019-11-15 12:59:38 +01:00
Join strings.pl Initial commit 2019-11-15 12:59:38 +01:00
Join the mapped value.pl Initial commit 2019-11-15 12:59:38 +01:00
Join the result of the split function.pl Initial commit 2019-11-15 12:59:38 +01:00
Join variables.pl Initial commit 2019-11-15 12:59:38 +01:00
Join with 'map chr'.pl Initial commit 2019-11-15 12:59:38 +01:00
Join with 'map lc'.pl Initial commit 2019-11-15 12:59:38 +01:00
Join with.pl Initial commit 2019-11-15 12:59:38 +01:00
Joining string with empty string.pl Initial commit 2019-11-15 12:59:38 +01:00
Lower and upper case.pl Initial commit 2019-11-15 12:59:38 +01:00
Multiline string.pl Initial commit 2019-11-15 12:59:38 +01:00
Only change first letter to lowercase.pl Initial commit 2019-11-15 12:59:38 +01:00
Output month name and week name by using the return value from gmtime.pl Initial commit 2019-11-15 12:59:38 +01:00
Output tab sign.pl Initial commit 2019-11-15 12:59:38 +01:00
Output the initial in lowercase and uppercase.pl Initial commit 2019-11-15 12:59:38 +01:00
Passing variable to length() function.pl Initial commit 2019-11-15 12:59:38 +01:00
print chr 65;.pl Initial commit 2019-11-15 12:59:38 +01:00
print chr(ord A);.pl Initial commit 2019-11-15 12:59:38 +01:00
Print Escape Sequences.pl Initial commit 2019-11-15 12:59:38 +01:00
print ord 'A'.pl Initial commit 2019-11-15 12:59:38 +01:00
print ord 'ABC';.pl Initial commit 2019-11-15 12:59:38 +01:00
Print out Here document.pl Initial commit 2019-11-15 12:59:38 +01:00
printf Data Formats.pl Initial commit 2019-11-15 12:59:38 +01:00
Printing a percent sign after a digit.pl Initial commit 2019-11-15 12:59:38 +01:00
Printing a space before signed values not preceded by + or -.pl Initial commit 2019-11-15 12:59:38 +01:00
Printing out message and adding new line character.pl Initial commit 2019-11-15 12:59:38 +01:00
Read input lines and concatenate them.pl Initial commit 2019-11-15 12:59:38 +01:00
String comperison operator cmp.pl Initial commit 2019-11-15 12:59:38 +01:00
String comperison operator equal.pl Initial commit 2019-11-15 12:59:38 +01:00
String comperison operator greater than.pl Initial commit 2019-11-15 12:59:38 +01:00
String comperison operator less than.pl Initial commit 2019-11-15 12:59:38 +01:00
String concatenate operator.pl Initial commit 2019-11-15 12:59:38 +01:00
String interpolation.pl Initial commit 2019-11-15 12:59:38 +01:00
t = tab, n = newline, = backslash.pl Initial commit 2019-11-15 12:59:38 +01:00
Takes its input and joins it into a single string.pl Initial commit 2019-11-15 12:59:38 +01:00
Text Formatting.pl Initial commit 2019-11-15 12:59:38 +01:00
The chomp function is a safer version of chop.pl Initial commit 2019-11-15 12:59:38 +01:00
The chop function removes the last character in a scalar variable.pl Initial commit 2019-11-15 12:59:38 +01:00
The correct use of three of the operators eq, it, and gt.pl Initial commit 2019-11-15 12:59:38 +01:00
The crypt function encrypts a string using the NBS Data Encryption Standard (DES) algorithm.pl Initial commit 2019-11-15 12:59:38 +01:00
The DATA Filehandle get the data from the same script.pl Initial commit 2019-11-15 12:59:38 +01:00
The Heredoc Operator without Variable Interpolation.pl Initial commit 2019-11-15 12:59:38 +01:00
The length of string with whitespace.pl Initial commit 2019-11-15 12:59:38 +01:00
Type four characters with chomp.pl Initial commit 2019-11-15 12:59:38 +01:00
Type four characters without chomp.pl Initial commit 2019-11-15 12:59:38 +01:00
Use tabs in print function.pl Initial commit 2019-11-15 12:59:38 +01:00
Use the crypt() operator to store passwords in an unbreakable format.pl Initial commit 2019-11-15 12:59:38 +01:00
Using {} to separate variable in variable interpolation.pl Initial commit 2019-11-15 12:59:38 +01:00
Using index function to check out if a string contains a sub string.pl Initial commit 2019-11-15 12:59:38 +01:00
Using index function.pl Initial commit 2019-11-15 12:59:38 +01:00
Using index to search a line repeatedly.pl Initial commit 2019-11-15 12:59:38 +01:00
Using length function to check the length of a string.pl Initial commit 2019-11-15 12:59:38 +01:00
Using pos to display pattern match positions.pl Initial commit 2019-11-15 12:59:38 +01:00
Using string interpolation to reference two dimensional array element.pl Initial commit 2019-11-15 12:59:38 +01:00
Using the ord function to the get the ASCII code value.pl Initial commit 2019-11-15 12:59:38 +01:00
Variable Interpolation.pl Initial commit 2019-11-15 12:59:38 +01:00