-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new file: matchtest.plx new file: rhyming.plx new file: wordlist.txt
- Loading branch information
Showing
5 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/perl | ||
use LWP::UserAgent; | ||
my $ua = LWP::UserAgent->new; | ||
my $response = $ua->get('https://us-amazon.icims.com/jobs/submittal'); | ||
print $response->content, "\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/nin/perl | ||
# matchtest.plx | ||
use warnings; | ||
use strict; | ||
|
||
$_ = q("I wonder what the English is for 'yes' and 'no'," he thought.); | ||
# Tolkien, Lord of the Rings | ||
|
||
print "Enter some text to find: "; | ||
my $pattern = <STDIN>; | ||
chomp($pattern); | ||
|
||
if(/$pattern/){ | ||
print "The text matches the pattern '$pattern'.\n" | ||
} else { | ||
print "'$pattern' was not found.\n"; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/perl | ||
#rhyming.plx | ||
use warnings; | ||
use strict; | ||
@ARGV = ("wordlist.txt"); | ||
my $syllable = "ink"; | ||
my $syllable1 = "b"; | ||
while (<>){ | ||
#print if /$syllable$/; | ||
print if /^$syllable1$/; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blink | ||
bobolink | ||
brink | ||
crink | ||
clink |