- Original Message -
From: "Jeff Peng"
To: "Mike Blezien"
Cc: "Perl List"
Sent: Sunday, January 17, 2010 8:05 PM
Subject: Re: Basic Domain and IP Info
在 2010-01-17日的 11:16 -0600,Mike Blezien写道:
Hello,
I've been looking for some basic domain/IP info that we can generate for
domain/
在 2010-01-17日的 23:34 +0530,Parag Kalra写道:
> Hello All,
>
> I am looking for a geeky way to wish someone on his Birthday with the help
> of Perl.
>
> Condition is - It should be one liner which I can directly execute from the
> command line.
>
> EG: perl -e "print 'Happy Birthday Larry!!!'"
>
G
在 2010-01-17日的 11:16 -0600,Mike Blezien写道:
> Hello,
>
> I've been looking for some basic domain/IP info that we can generate for
> domain/IP addresses entered from a form. I've been searching CPAN without
> much
> luck, but maybe looking in the wrong places. What I like to do is obtain the
> f
Jim Green wrote:
> my $name = "/usr/local/bin/perl";
> (my $basename = $name) =~ s#.*/##; # Oops!
>
#!/usr/bin/perl
use strict;
use warnings;
use File::Basename;
my $name = "/usr/local/bin/perl";
my $basename = basename( $name );
print "$basename\n";
--
Just my 0.0002 million dollars wo
>>So common folks give me some ideas.
I meant - Come on Folks :P
Cheers,
Parag
On Sun, Jan 17, 2010 at 11:34 PM, Parag Kalra wrote:
> Hello All,
>
> I am looking for a geeky way to wish someone on his Birthday with the help
> of Perl.
>
> Condition is - It should be one liner which I can di
Hello All,
I am looking for a geeky way to wish someone on his Birthday with the help
of Perl.
Condition is - It should be one liner which I can directly execute from the
command line.
EG: perl -e "print 'Happy Birthday Larry!!!'"
But this is very simple and you can directly make out without ev
Hello,
I've been looking for some basic domain/IP info that we can generate for
domain/IP addresses entered from a form. I've been searching CPAN without much
luck, but maybe looking in the wrong places. What I like to do is obtain the
following information for the domain/IP address:
Name Se
Hi Jim,
>>but why it is not /local/bin/perl? will .*/ matches longest possible
string?
. means any character
* means preceding character any number of times (zero or more), so .*
means any character (but not a new line) any number of times
Now .*/ means any number of characters but should e
my $name = "/usr/local/bin/perl";
(my $basename = $name) =~ s#.*/##; # Oops!
after substitution $basename is supposed to be
perl
but why it is not /local/bin/perl? will .*/ matches longest possible string?
Thank you list!
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional