[12765] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 175 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat Jul 17 11:07:13 1999

Date: Sat, 17 Jul 1999 08:05:10 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Sat, 17 Jul 1999     Volume: 9 Number: 175

Today's topics:
        'man perldiag' <Webdesigner@NewWebSite.com>
    Re: 'man perldiag' (Dave Cross)
    Re: cgi compiler (Dave Cross)
        Create DB file with Perl <fnemec@sti.com.br>
    Re: export excel file gjlinker@geocities.com
    Re: Future of Perl jtubaugh@my-deja.com
    Re: Future of Perl (Arved Sandstrom)
    Re: Future of Perl (I R A Aggie)
    Re: glob("*.*") gives "File not found message" on NT <swiftkid@bigfoot.com>
        Help needed: Where can I get rate.cgi? (Peter Jemmeson)
    Re: Help needed: Where can I get rate.cgi? (Dave Cross)
    Re: Hex dump <sb@sdm.de>
        How can I do a case insensitive search? <baal@c2i.net>
    Re: How can I do a case insensitive search? <syt@email*@sp\am|@|spa/m@*.com>
    Re: How can I do a case insensitive search? <rick.delaney@home.com>
        I can't find this one in the FAQ. <jscott@oro.net>
    Re: IPC q: 2 procs running in parallel (Anno Siegel)
    Re: Local CGI with ActivePerl <Webdesigner@NewWebSite.com>
    Re: Local CGI with ActivePerl (Michael Rubenstein)
    Re: Passing data to browser from html (Michel Dalle)
    Re: Q: passing array/hash from one subroutine to anothe (Anno Siegel)
    Re: Remove leading zeros from a string (Abigail)
    Re: time question <Webdesigner@NewWebSite.com>
    Re: Tiny error in perlfaq5 (Sitaram Chamarty)
    Re: Where to start with perl programming ? arpith@hotmail.com
        Digest Administrivia (Last modified: 1 Jul 99) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Sat, 17 Jul 1999 10:01:58 GMT
From: Floyd Morrissette <Webdesigner@NewWebSite.com>
Subject: 'man perldiag'
Message-Id: <7mpkak$911$1@nnrp1.deja.com>

I have seen references to this recently and was wondering what and where
it is. I am not sure if it is a place on the web or if you access it
somehow within perl itself.



--
Get your web site from http://www.NewWebSite.com
Consultation is always free.
Help with cgi scripts.


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


------------------------------

Date: Sat, 17 Jul 1999 13:25:56 GMT
From: dave@dave.org.uk (Dave Cross)
Subject: Re: 'man perldiag'
Message-Id: <37928446.18007004@news.demon.co.uk>

On Sat, 17 Jul 1999 10:01:58 GMT, Floyd Morrissette
<Webdesigner@NewWebSite.com> wrote:

>I have seen references to this recently and was wondering what and where
>it is. I am not sure if it is a place on the web or if you access it
>somehow within perl itself.

It's a command that you type on your command line. If that doesn't
work, try 'perldoc perldiag'.

hth,

Dave...

--
Dave Cross <dave@dave.org.uk>
<http://www.dave.org.uk>


------------------------------

Date: Sat, 17 Jul 1999 13:45:20 GMT
From: dave@dave.org.uk (Dave Cross)
Subject: Re: cgi compiler
Message-Id: <37988880.19089849@news.demon.co.uk>

On Sat, 17 Jul 1999 04:17:15 +0800, "news.ust.hk" <babyh@forfree.at>
wrote:

>
>Dear,
>        Where can I find a CGI complier(work under windows)?
>    As I want to change my program into byte code!

CGI is a protocol, not a program. You mean (I guess) a CGI program.

Compiling a CGI program is easy. Just get a compiler for whichever
programming language your program is written in.

Did you have a Perl question?

Dave...

--
Dave Cross <dave@dave.org.uk>
<http://www.dave.org.uk>


------------------------------

Date: Sat, 17 Jul 1999 08:36:32 -0300
From: "Fernando Nemec" <fnemec@sti.com.br>
Subject: Create DB file with Perl
Message-Id: <7mpq17$c2h$1@news.sti.com.br>

Hello!

I installed the last version of Perl, and tried use the
dbmopen() and dbmclose() functions, but I got a problem.
When I run the script, the browser returns the message: "...
invalid response from server...", and the archive isn't
create.
I run the script from a Web Server in a Win32 platform.

Anyone can help me??

--
Fernando Nemec
fnemec@sti.com.br
São Paulo - BR





------------------------------

Date: Sat, 17 Jul 1999 10:45:11 GMT
From: gjlinker@geocities.com
To: yfang@bbn.com
Subject: Re: export excel file
Message-Id: <7mpmrn$9ig$1@nnrp1.deja.com>

Dear Yu Fang,

You may use my Oracle to Excel addin Oraxcel to complete your task.

Oraxcel LITE will do the job for you and can be downloaded free of
charge from http://members.aol.com/gjlinker

Oraxcel is an addin for Excel and gives you full access to Oracle. It
supports full spreadsheet uploads and updates.

Regards, Gerrit-Jan Linker
Developer of Oraxcel, OraWeb, OraCodes and OraDebug

In article <378A3C50.9BDC5AD3@bbn.com>,
  Yu Fang <yfang@bbn.com> wrote:
> I have a database (Oracle) on a Unix box. One report I generate from
> this database needs to be in an Excel file. Is there any perl module
for
> Unix can do this? Thanks.
>
> Faisal Nasim wrote:
> >
> > Yu Fang <yfang@bbn.com> wrote in message
news:378A2E85.5C5CFCC4@bbn.com...
> > : Guys:
> > :   Is there a module in perl that creates an MS excel file? Thanks.
> > : --
> >
> > Win32::OLE
>
> --
> Frank Yu Fang
>
> GTE Internetworking
> 40 Sylvan Road
> Waltham, MA 02451-1128
>
> Phone: 781-262-7274
> Fax: 781-466-2650
> Pager: 1-800-759-8888 PIN# 1619895 or 1619895@skytel.com
>


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


------------------------------

Date: Sat, 17 Jul 1999 12:10:02 GMT
From: jtubaugh@my-deja.com
Subject: Re: Future of Perl
Message-Id: <7mprqo$aii$1@nnrp1.deja.com>

I'd like to post a brief comment about this subject.  I'm definitely a
"newbie" programmer in Perl, but an "oldie" (guess that's the opposite,
right) in the land of computers and dataprocessing (about 15 years -
anybody remember COBOL?).

A few weeks ago there was a project needing done at work, and nobody was
doing it.  So I raised my hand, said I'd do it in a week.  The project
required html knowledge, perl, CGI.  This project was basically getting
information out of a non-standard dbms and displaying it on the web.

I spent a lot of time on the internet, in tutorials, and asking
questions (some of them kinda stupid).  I met my week deadline, with
really great comments on the work I did.  And I have a couple of new
tools to add to my toolbox.

My official title is "Database Administrator."  My "official" job is not
to program, but there was something that needed done, and it required
programming.  (Although, argueably the title "DBA" often stands for "Do
'Bout Anything!")

My point:  Yes it is important to learn the languages that are in
greatest demand if you want to be a programmer.  (If I may wax a bit
philosophical for a moment...) But the bottom line is, can you do the
job whatever it takes?  And can you learn?  And are you willing to work?

In these days of rapid technological change, I think it is more
important to learn how to learn, and learn as much as you can, and keep
good notes and examples of things you have done.  I'm definitely no
expert on Perl 5 after only about four weeks.  But its another tool.

<END SOAPBOX>

Jeff


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


------------------------------

Date: Sat, 17 Jul 1999 10:52:38 -0300
From: Arved_37@chebucto.ns.ca (Arved Sandstrom)
Subject: Re: Future of Perl
Message-Id: <Arved_37-1707991052380001@dyip-30.chebucto.ns.ca>

In article <3797cd5a.172442315@news.giganews.com>, Jeffrey@ix.netcom.com
(Jeffrey) wrote:

> On 15 Jul 1999 23:24:02 -0500, abigail@delanet.com (Abigail) wrote:
> 
> >Don't judge programming languages on their usefullness, judge them on
> >their marketable value! That'll increase the quality of code and will
> >bring us closer to world peace.
> 
> Listen bitch, I learned a lot about how to program the Amiga computer
> and then it died in the marketplace. I don't want something like that
> to happen ever again. A language isn't fucking useful if you can't get
> a job programming in it.
> 
> As for my original question, it was spurred by a comment in a CGI book
> that Java would take over and Perl would become a legacy language.
> Someone said the same thing in a message when I did a search on Deja
> News. So don't act like my question was so fucking stupid, bitch.

Strikes me that your difficulties obtaining work probably have to do with
your interpersonal skills.

BTW, what makes a good programmer has about zero to do with what languages
they have command of at any given time. As an employer I'd be a little
dubious about taking you on, since you seem to imply that simultaneous
competence with Perl and Java is beyond your reach.

Have you considered data entry? You can avoid the hard work, but still
delude your friends into believing that you're a programmer.

Arved


------------------------------

Date: 17 Jul 1999 14:42:36 GMT
From: fl_aggie@thepentagon.com (I R A Aggie)
Subject: Re: Future of Perl
Message-Id: <slrn7p15n5.p9l.fl_aggie@thepentagon.com>

On Sat, 17 Jul 1999 00:30:31 GMT, Jeffrey <Jeffrey@ix.netcom.com>, in
<3797cd5a.172442315@news.giganews.com> wrote:

+ As for my original question, it was spurred by a comment in a CGI book
+ that Java would take over and Perl would become a legacy language.
+ Someone said the same thing in a message when I did a search on Deja
+ News.

If you want to listen to hype, listen to hype. If you get burned by
hype, that's too bad. Java's been around for how long, and it *still*
hasn't "taken over".

+ So don't act like my question was so fucking stupid, bitch.

Well, actually it is. How do you know that Java won't be dead or highly
niched in 3 years?

James


------------------------------

Date: Sat, 17 Jul 1999 15:48:57 +0500
From: "Faisal Nasim" <swiftkid@bigfoot.com>
Subject: Re: glob("*.*") gives "File not found message" on NT
Message-Id: <7mqqil$9jb5@news.cyber.net.pk>

: my @array = glob("*.*");

it works for me...

: on my NT 4 machine. I'm using Perl 5.004_02

Try Perl 5.005_3 .... if you don't want an activestate version, check out
cygnus, they have a stable static/dynamic port of Perl for Windows.




------------------------------

Date: Sat, 17 Jul 1999 11:32:22 GMT
From: Peter@galaxy.demon.co.uk (Peter Jemmeson)
Subject: Help needed: Where can I get rate.cgi?
Message-Id: <379068d1.8728285@news.demon.co.uk>

Hi,

I've been looking all over to try and find somewhere I can get rate.cgi from and would be grateful if someone could point me
in the right direction.

Thanks,
Peter


------------------------------

Date: Sat, 17 Jul 1999 13:27:31 GMT
From: dave@dave.org.uk (Dave Cross)
Subject: Re: Help needed: Where can I get rate.cgi?
Message-Id: <3793847a.18059519@news.demon.co.uk>

On Sat, 17 Jul 1999 11:32:22 GMT, Peter@galaxy.demon.co.uk (Peter
Jemmeson) wrote:

>Hi,
>
>I've been looking all over to try and find somewhere I can get rate.cgi from and would be grateful if someone could point me
>in the right direction.

It might help if you explained what rate.cgi is. It sounds like you
should perhaps be asking in a CGI newsgroup.

Did you have a Perl question?

--
Dave Cross <dave@dave.org.uk>
<http://www.dave.org.uk>


------------------------------

Date: 17 Jul 1999 11:41:26 GMT
From: Steffen Beyer <sb@sdm.de>
Subject: Re: Hex dump
Message-Id: <7mpq56$p5m$1@solti3.sdm.de>

In article <MPG.11f93fd26fa8ea3989ce7@nntp.hpl.hp.com>, Larry Rosler <lr@hpl.hp.com> wrote:

> In article <7mnqrk$lt0$1@nnrp1.deja.com> on Fri, 16 Jul 1999 17:41:10 
> GMT, xdiv@hotmail.com <xdiv@hotmail.com> says...

> > Is there a way in perl to get a hex dump of a binary string?

> I'd love to see a cleaner solution than this ugly business.

Just take a look at the Bit::Vector module. See my sig below for URLs
where to download it from.

See also:

How do I convert from hexadecimal to decimal:

1) $dec = 0xDEADBEEF;
2) $dec = hex("DEADBEEF");
3) $dec = unpack("N", pack("H8", substr("0" x 8 . "DEADBEEF", -8)));
4) use Bit::Vector;
   $vec = Bit::Vector->new_Hex(32, "DEADBEEF");
   $dec = $vec->to_Dec();

How do I convert from decimal to hexadecimal:

1) $hex = sprintf("%X", 3735928559);
2) $hex = unpack("H*", pack("N", 3735928559));
3) use Bit::Vector;
   $vec = Bit::Vector->new_Dec(32, -559038737);
   $hex = $vec->to_Hex();

How do I convert from octal to decimal:

1) $dec = 033653337357; # note the leading '0'
2) $dec = oct("33653337357");
3) use Bit::Vector;
   $vec = Bit::Vector->new(32);
   $vec->Chunk_List_Store(3, split(//, reverse "33653337357"));
   $dec = $vec->to_Dec();

How do I convert from decimal to octal:

1) $oct = sprintf("%o", 3735928559);
2) use Bit::Vector;
   $vec = Bit::Vector->new_Dec(32, -559038737);
   $oct = reverse join('', $vec->Chunk_List_Read(3));

How do I convert from binary to decimal:

1) $dec = unpack("N", pack("B32",
      substr("0" x 32 . "11011110101011011011111011101111", -32)));
2) use Bit::Vector;
   $vec = Bit::Vector->new_Bin(32, "11011110101011011011111011101111");
   $dec = $vec->to_Dec();

How do I convert from decimal to binary:

1) $bin = unpack("B*", pack("N", 3735928559));
2) use Bit::Vector;
   $vec = Bit::Vector->new_Dec(32, -559038737);
   $bin = $vec->to_Bin();

The remaining transformations (e.g. hex -> oct, bin -> hex, etc.)
are left as an exercise to the inclined reader. :-)

(Note: The advantage of the Bit::Vector module is that it works with
numbers of ANY size.)

Hope this helps.

Regards,
-- 
    Steffen Beyer <sb@engelschall.com>
    http://www.engelschall.com/u/sb/whoami/
    http://www.engelschall.com/u/sb/download/
    http://www.perl.com/CPAN/authors/id/STBEY/


------------------------------

Date: Sat, 17 Jul 1999 14:12:48 GMT
From: "[L] Vicious!" <baal@c2i.net>
Subject: How can I do a case insensitive search?
Message-Id: <Ab0k3.709$_L6.50105@juliett.dax.net>

I've just programmed a searchengine, and need some help. How can I do a case
insensitive search? Now I use:

#simplified
if ($string =~ /$searchstring/) {
  print "Found!\n";
}


I also need some help for cursor control. This is a DOS-command line
controlled program, and I want some progress indicators. For that purpose I
need to move the cursor back some spots, or up one line.


Apreciate any suggestions you might have...



Sigmund S.
baal@c2i.net




------------------------------

Date: Sat, 17 Jul 1999 09:32:02 -0500
From: "Jim" <syt@email*@sp\am|@|spa/m@*.com>
Subject: Re: How can I do a case insensitive search?
Message-Id: <7mq455$vhb$1@news3.infoave.net>

if ($string =~ /$searchstring/I) {
  print "Found!\n";
}

capital "i" is for case insensitive

--
-Jim- syt.at.email.dot.com
----------------------------------
-I don't suffer from insanity, I enjoy every minute of it.
-So what if I'm paranoid? It doesn't hurt anybody
and makes life interesting for me.
----------------------------------
- Get Paid For Staying Online -
http://www.alladvantage.com/refhome.asp?refid=ANT424


[L] Vicious! <baal@c2i.net> wrote in message
news:Ab0k3.709$_L6.50105@juliett.dax.net...
I've just programmed a searchengine, and need some help. How can I do
a case
insensitive search? Now I use:

#simplified
if ($string =~ /$searchstring/) {
  print "Found!\n";
}


I also need some help for cursor control. This is a DOS-command line
controlled program, and I want some progress indicators. For that
purpose I
need to move the cursor back some spots, or up one line.


Apreciate any suggestions you might have...



Sigmund S.
baal@c2i.net




------------------------------

Date: Sat, 17 Jul 1999 14:54:45 GMT
From: Rick Delaney <rick.delaney@home.com>
Subject: Re: How can I do a case insensitive search?
Message-Id: <37909904.D46BD64D@home.com>

Jim wrote:
> 
> if ($string =~ /$searchstring/I) {
>   print "Found!\n";
> }
> 
> capital "i" is for case insensitive

I thought capital "i" is for

    I don't test code before posting it.
    I don't read the manual.
    I think .sigs are as important as the message.
    I always get stuff backwards.  Question before answer, "I" for "i".

Please don't confuse people by giving out wrong information.  And go
smack the person that gave this misinformation to you.

-- 
Rick Delaney
rick.delaney@home.com


------------------------------

Date: Fri, 16 Jul 1999 12:35:06 -0700
From: oronet Tech - Joshua Scott <jscott@oro.net>
Subject: I can't find this one in the FAQ.
Message-Id: <378F896A.871F446D@oro.net>

Here is my code.  Simple as it is, I still get a really screwy error.  I
read the perldoc and I find no reference to thas error in a FAQ. 
Anybody got any ideas?

=====CODE=====
#!/usr/bin/perl

use FileHandle;  
use CGI;


$query = new CGI;

$agree = $query->param('agree');

if ( $agree eq "yes") {

print $query->redirect('http://www.oro.net');}
=====END CODE=====

=====START Command line=====
 ./agree.cgi agree=yes^m


Status: 302 Found
Uri: http://www.oro.net
Location: http://www.oro.net
Content-type: text/html
=====END Command line=====


=============================================================
Josh Scott                                           272.0799
oronet Technician                  http://www.oro.net/~jscott


------------------------------

Date: 17 Jul 1999 13:07:27 -0000
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: IPC q: 2 procs running in parallel
Message-Id: <7mpv6f$iuv$1@lublin.zrz.tu-berlin.de>

 <li@smart.net> wrote in comp.lang.perl.misc:
>Hi,
>
>What I try to do is start a long process in a perl script (say rcp a
>large file) and then,while this process is running, print somehow to
>STDOUT a "progressing bar" (dots) to let the user know that the rcp'ing
>is still alive.  The problem is that I want also to check the error
>status of the rcp process when is finished.
>
>This situation is pretty common, but I couldn't find all the pieces of
>information to put this to work (searched FAQ8, perlipc, camel and ram
>books, but all I can find is for slightly different problems that
>the one that I have...).
>
>I tried to start the rcp'ing in bg (system("rcp..... &")).  To get the
>errno back from system command I go in a loop, print my dots and check
>in the same time if the process is finished. The problem is: how do I
>get the pid of the rcp process so that I could then check to see if is
>finished by sending 0 signal to it.  Even if I could do that, and I
>check $? when rcp finishes, can I be sure that the value stored there is
>from the rcp process (since I don't run others)?

The most straightforward way to get the pid of a child process is
to do your own fork().  Here's a sketch of what you might do, with
"sleep 10" instead of rcp ....

#!/usr/bin/perl -w
# use strict;

$pid = fork();
die "Can't fork $!\n" unless defined $pid;
if ( $pid ) {
  # parent
  $SIG{ CHLD} = sub { wait};
  $| = 1;
  while ( kill( 0, $pid) ) {
    print '.';
    sleep 1;
  }
  print "\n";
} else {
  # kid
  exec 'sleep 10';
}
__END__

Prints 10 dots and exits.

Anno


------------------------------

Date: Sat, 17 Jul 1999 10:51:41 GMT
From: Floyd Morrissette <Webdesigner@NewWebSite.com>
Subject: Re: Local CGI with ActivePerl
Message-Id: <7mpn7t$9kk$1@nnrp1.deja.com>

For some reason, perhaps because of not being used to people having
preferences that are not the same as her own, Abigail called me an idiot
and silly.

I write the response first because I know at least some people have just
finished reading the previous post and don't need to read it again
before they get to my post. However I do also know that some have not
read the previous post so I quote it for their convenience. Its just a
personal preference.

You are right that I should have snipped some of the previous post. I
will try to do better about that.

I know other people have other preferences and I don't call them idiots
or silly for having them. We are all just different. And that is the
beauty of asking questions in a newsgroup, to get different ideas and
answers.


In article <slrn7o0lc1.h6v.abigail@alexandra.delanet.com>,
  abigail@delanet.com wrote:
> Floyd Morrissette (Webdesigner@NewWebSite.com) wrote on MMCXXXIV
> September MCMXCIII in <URL:news:7lp3iu$81v$1@nnrp1.deja.com>:
>
> [  For some idiotic reason, perhaps lack of Usenet experience, Floyd
>    decided to write his posting upside down. Response first, then the
>    quote. Of course, the entire article was quoted, including sigs
>    and advertisement, and random newlines were inserted.
>    Silly, silly, silly.
> ]

--
Get your web site from http://www.NewWebSite.com
Consultation is always free.
Help with cgi scripts.


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


------------------------------

Date: Sat, 17 Jul 1999 14:01:51 GMT
From: miker3@ix.netcom.com (Michael Rubenstein)
Subject: Re: Local CGI with ActivePerl
Message-Id: <37a08bb9.439527567@nntp.ix.netcom.com>

On Sat, 17 Jul 1999 10:51:41 GMT, Floyd Morrissette
<Webdesigner@NewWebSite.com> wrote:

>For some reason, perhaps because of not being used to people having
>preferences that are not the same as her own, Abigail called me an idiot
>and silly.

One of the things expected from newcomers is that they spend some
time reading a newsgroup before posting.  If you expected
tolerance for differing points of view on this newsgroup, either
you have not done this or you are a fool.

-- 
Michael M Rubenstein


------------------------------

Date: Sat, 17 Jul 1999 09:09:10 GMT
From: michel.dalle@usa.net (Michel Dalle)
Subject: Re: Passing data to browser from html
Message-Id: <7mph60$442$2@xenon.inbe.net>

In article <7mmtn8$2im@cheetah.gssec.bt.co.uk>, "Eoan Kerr" <eoan.kerr@gssec.bt.co.uk> wrote:
[snip]
>It has lines  <!-- Start of Page content and a line <!-- End of Page
>content.   These are used for additional html to be inserted between them.
[snap]
>The problem is that the table code replaces the 2nd line of html
><!DOCTYPE etc..........

My ESP module tells me you're looking for '<!' rather than
'<!-- Start of Page content'.

But then again, that module is not always reliable :-)
Next time, try to post a little bit of your script...

Michel.

--
aWebVisit - extracts visitor information from WWW logfiles and shows
the top entry, transit, exit and 'hit&run' pages, the links followed
inside your website, the time spent per page, the visit duration etc.
For more details, see http://gallery.uunet.be/Michel.Dalle/awv.html


------------------------------

Date: 17 Jul 1999 13:54:11 -0000
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: Q: passing array/hash from one subroutine to another subroutine
Message-Id: <7mq1u3$j09$1@lublin.zrz.tu-berlin.de>

Tom Christiansen  <tchrist@mox.perl.com> wrote in comp.lang.perl.misc:

>                                     ...standard perlsub manpage that
>comes with every included with every distribution...

>    ...standard perlfaq7 manpage that comes with every included with every
>distribution...

Do you occasionally read your replies?

Anno


------------------------------

Date: 17 Jul 1999 04:05:56 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Remove leading zeros from a string
Message-Id: <slrn7p0hql.c9j.abigail@alexandra.delanet.com>

Sami Rosenblad (blade@leela.janton.fi) wrote on MMCXLVI September
MCMXCIII in <URL:news:blade-1707990348260001@durandal.janton.fi>:
@@ In article <37909924.792402@news.skynet.be>, bart.lateur@skynet.be (Bart
@@ Lateur) wrote:
@@ 
@@ <regexes to remove leading zeroes snipped>
@@ 
@@ >         $n =~ s/^0+(?=\d)//;
@@ > 
@@ > There. Leave at least one leading digit.
@@ 
@@ How about ditching the regex altogether?
@@ 
@@ my $n = "00000123";
@@ print $n+0; # prints 123

my $n = "000DEADBEEF"
print $n + 0;  # Ooops!


Abigail
-- 
perl -e '* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
         / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / 
         % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %;
         BEGIN {% % = ($ _ = " " => print "Just Another Perl Hacker\n")}'


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


------------------------------

Date: Sat, 17 Jul 1999 10:09:51 GMT
From: Floyd Morrissette <Webdesigner@NewWebSite.com>
Subject: Re: time question
Message-Id: <7mpkpd$93c$1@nnrp1.deja.com>

No it has not. I had not heard of either of these two sites. Thank you
for telling all of us in such a polite manner.


In article <slrn7o069t.tjt.billynospam@wing.mirror.bt.co.uk>,
  billynospam@mirror.bt.co.uk (Graham Ashton) wrote:
> In article <7lp2dd$7nl$1@nnrp1.deja.com>, Floyd Morrissette wrote:
>
> >Has it occured to anybody that not all of have access to the perl
docs.
>
> no, it hasn't. has it occurred to you that it's all available on the
> Internet?
>
>   http://language.perl.com/info/documentation.html
>
> and if you think that's hard to find, guess which page you get if you
> type "perl documentation" into www.google.com, and hit the "I'm
feeling
> lucky" button ...
>
> --
> Graham
>
> P.S. <billynospam@mirror.bt.co.uk> is a fully working address...
>

--
Get your web site from http://www.NewWebSite.com
Consultation is always free.
Help with cgi scripts.


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


------------------------------

Date: Sat, 17 Jul 1999 10:39:59 GMT
From: sitaram@diac.com (Sitaram Chamarty)
Subject: Re: Tiny error in perlfaq5
Message-Id: <slrn7ovdjd.t02.sitaram@diac.com>

On 15 Jul 1999 15:39:59 -0700, Tom Christiansen
<tchrist@mox.perl.com> wrote:

>Yes.
>
>How many randbits?

At risk of sounding like a fool:

Am I to understand from this thread that if you have randbits=48
or so, then the exact value "0" will _never_ occur?  Or are you
merely saying that it might, but don't hold your breath!


------------------------------

Date: Sat, 17 Jul 1999 10:13:42 GMT
From: arpith@hotmail.com
Subject: Re: Where to start with perl programming ?
Message-Id: <7mpl0k$95b$1@nnrp1.deja.com>

In article <3790365D.26441F65@csudh.edu>,
  Francisco Romero <fromero@csudh.edu> wrote:
> Why don't you use Linux.  There is every thing you need from perl, to
a
> web server if you need to run CGI scripts.  One thing about Linux is
> that it is for free and you can put Linux on a 486 machine.
>

I have linux on a CD, but since I already have Win95, I just installed a
free web server (OmniHTTPd 1.0) & Active Perl & DCOM95. The cgi scripts
work fine now.. So I'm starting here :)

I would like to know, since I have this web server, can't anyone access
my computer ? I connect thru a proxy server and have a dynamic IP. The
webserver resolves the ip from my ISP so it works fine, but how will
other people know about my IP if it keeps changing ? I do not have a
URL.

Is there any way around ? Also, unix has the sendmail function to send
mail right ? How would I make my CGI scripts to send mail with Omni &
win95 ?

If I were to get Linux, I would need Perl for Linux, a webserver and all
that right ? Maybe another time, when I get right into cgi-perl :)

Thanks,
Arpith.


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


------------------------------

Date: 1 Jul 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 1 Jul 99)
Message-Id: <null>


Administrivia:

The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc.  For subscription or unsubscription requests, send
the single line:

	subscribe perl-users
or:
	unsubscribe perl-users

to almanac@ruby.oce.orst.edu.  

To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.

The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.

The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.

For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V9 Issue 175
*************************************


home help back first fref pref prev next nref lref last post