This file contains hidden or 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
#Created by tryperl.com | |
use strict; | |
use warnings; | |
print "Go Ahead and edit me!"; | |
print "Once you are done editing, click SAVE to save changes :D"; | |
# print <>; #you can use the STDIN to put data into your program |
This file contains hidden or 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
#Created by tryperl.com | |
use strict; | |
use warnings; | |
print "Go Ahead and edit me!"; | |
print "Once you are done editing, click SAVE to save changes :D"; | |
# print <>; #you can use the STDIN to put data into your program | |
my $string = "The black cat climbed the green tree"; | |
my $black = substr $string, 4 5; |
This file contains hidden or 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
#Created by tryperl.com | |
use strict; | |
use warnings; | |
print "Go Ahead and edit me!"; | |
print "Once you are done editing, click SAVE to save changes :D"; | |
# print <>; #you can use the STDIN to put data into your program |
This file contains hidden or 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
use LWP::UserAgent; | |
sub GetFileSize{ | |
my $url=shift; | |
$ua = new LWP::UserAgent; | |
$ua->agent("Mozilla/5.0"); | |
my $req = new HTTP::Request 'HEAD' => $url; | |
$req->authorization_basic('myuser', 'mypass'); | |
$req->header('Accept' => 'text/html'); | |
$res = $ua->request($req); |
This file contains hidden or 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
#Created by tryperl.com | |
use strict; | |
use warnings; | |
print "Go Ahead and edit me!"; | |
print "Once you are done editing, click SAVE to save changes :D"; | |
# print <>; #you can use the STDIN to put data into your program |
This file contains hidden or 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
#Created by tryperl.com | |
use strict; | |
use warnings; | |
my $var = "This is my first perl program"; | |
print "The output is : $var"; | |
print "Go Ahead and edit me!"; | |
print "Once you are done editing, click SAVE to save changes :D"; | |
# print <>; #you can use the STDIN to put data into your program |
This file contains hidden or 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
#Created by tryperl.com | |
use strict; | |
use warnings; | |
print "Go Ahead and edit me!"; | |
print "Once you are done editing, click SAVE to save changes :D"; | |
# print <>; #you can use the STDIN to put data into your program | |
print "print this please !" |
This file contains hidden or 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
#Created by tryperl.com | |
use strict; | |
use warnings; | |
print "Go Ahead and edit me!"; | |
print "Once you are done editing, click SAVE to save changes :D"; | |
# print <>; #you can use the STDIN to put data into your program |
This file contains hidden or 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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
my $data = 'FIRSTFIELD=1;SECONDFIELD=2;THIRDFIELD=3'; | |
my %values = split(/[=;]/, $data); | |
foreach my $k (keys %values) { |
This file contains hidden or 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
#Created by tryperl.com | |
use strict; | |
use warnings; | |
print "Go Ahead and edit me!"; | |
print "Once you are done editing, click SAVE to save changes :D"; | |
# print <>; #you can use the STDIN to put data into your program |