On Thu, Oct 16, 2008 at 7:57 PM, John W. Krahn <[EMAIL PROTECTED]> wrote:
> print "$ip/" . unpack "%32b*", inet_aton $mask;
> '
Thanks, that's the cool solution.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
I need to translate an IP addr with its mask from this form:
192.168.1.30/255.255.255.0
to this one:
192.168.1.30/24
which module/method is right to use? Thanks.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
On Wed, Oct 15, 2008 at 5:17 AM, <[EMAIL PROTECTED]> wrote:
> I had a similar problem. Check out the contents of your urllist. This
> is what mine looked like:
>
> cpan[1]> o conf urllist
> urllist
> 0 []
> 1 [ftp://carroll.cac.psu.edu/pub/CPAN/]
> 2 [ftp://cpan-du
On Tue, Oct 14, 2008 at 10:58 PM, Rob Dixon <[EMAIL PROTECTED]> wrote:
> Chas. Owens wrote:
>>
>> [...] if for some reason you don't have access to perldoc
>
> Are there any installations of perl that don't include the manual?
>
Yes, I didn't have "man" installed on one of my hosts, so I can't rea
My CPAN shell seems wrong.
When I tried to install modules, it got failed.
The info is below.
What wrong with this? Thanks.
cpan> install Mail::Send
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Wed, 08 Oct 2008 22:26:52 GMT
Running install for module Mail
2008/9/30 Vyacheslav Karamov <[EMAIL PROTECTED]>:
>
> I've made a mistake. Correct code:
>
> sub SomeFunc
> {
> my $node = shift @_;
or:
my $node = shift;# shift get @_ as the default arguments
my ($node) = @_; # in list context, $node will get the first element of @_
--
Sandy
--
To
On Tue, Sep 30, 2008 at 5:41 AM, bdy <[EMAIL PROTECTED]> wrote:
>
> What module, if one exists, could I use or tweak if I wanted to create
> an HTML form to search those files in the aforementioned directories
> with human readable output?
>
Try File::Find, that may be helps.
--
To unsubscribe,
On Mon, Sep 29, 2008 at 4:05 PM, Funny Perl <[EMAIL PROTECTED]> wrote:
> I just start to learn perl on GD graph. My OS is Linux.
>
> I got a example, but how can I display the graph on the screen ? use
> Gtk2 or something else?
>
Generally we use GD to print the graphs to web browsers.
I didn't kn
On Mon, Sep 29, 2008 at 12:34 PM, org chen <[EMAIL PROTECTED]> wrote:
>
> I have a huge file, there are 47,286,116 lines. I am search a line and
> repalce this line with another string. I know this line is between
> 20,000,000th to 30,000,000th lines. Which way is more fast and safe:
>
The secon
Seems you didn't have the webserver configured correctly to run cgi
scripts for the req-path of cgi-bin.
On Sun, Sep 28, 2008 at 2:28 PM, itshardtogetone
<[EMAIL PROTECTED]> wrote:
> Hi,
> I use internet explorer 7.0 to browse the website.
> I upload a simple script, helloworld.cgi, to my website
On Sun, Sep 28, 2008 at 2:42 AM, Jenda Krynicky <[EMAIL PROTECTED]> wrote:
> From: oldyork90 <[EMAIL PROTECTED]>
>> Is there a way to dump the name space; show all var names and values?
>
> print Dumper(\%main::);
Not so right.
This can only dump the package variables, not a my v
On Sat, Sep 27, 2008 at 3:11 AM, oldyork90 <[EMAIL PROTECTED]> wrote:
> Is there a way to dump the name space; show all var names and values?
>
>
If the name space is an object, you could show its structure with Data::Dumper.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
That was somewhat strange.
For better solution you may ask to this module's author.
On Fri, Sep 26, 2008 at 9:46 PM, V.Ramkumar
<[EMAIL PROTECTED]> wrote:
>
> Tool output:
> Ḥ Ḥ
>
>
> Expected output:
> Ḥ &Hdb;
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comm
13 matches
Mail list logo