Skip to content

Commit

Permalink
new file: at.plx
Browse files Browse the repository at this point in the history
	new file:   matchtest.plx
	new file:   rhyming.plx
	new file:   wordlist.txt
  • Loading branch information
txdywy committed Dec 2, 2011
1 parent aaffba2 commit 2f53afa
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 0 deletions.
Binary file added .matchtest.plx.swp
Binary file not shown.
5 changes: 5 additions & 0 deletions at.plx
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";
18 changes: 18 additions & 0 deletions matchtest.plx
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";
}

11 changes: 11 additions & 0 deletions rhyming.plx
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$/;
}
5 changes: 5 additions & 0 deletions wordlist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blink
bobolink
brink
crink
clink

0 comments on commit 2f53afa

Please sign in to comment.