Skip to content

Instantly share code, notes, and snippets.

#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
#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;
#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
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);
#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
#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
#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 !"
#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
#!/usr/bin/perl
use strict;
use warnings;
my $data = 'FIRSTFIELD=1;SECONDFIELD=2;THIRDFIELD=3';
my %values = split(/[=;]/, $data);
foreach my $k (keys %values) {
#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