Re: 15 Million RAW

2005-11-24 Thread Pierre Smolarek

Lorenzo Caggioni wrote:

The program I written takes 25 sec for 10.000 line... too much
  

How quickly do you need to it if 25 seconds is too long?

--
Best Regards,

Pierre Smolarek
Unify Media Ltd

tel. 1-403-681-8054


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Perl/TK GUI IDE? Does one exist?

2001-08-23 Thread Pierre Smolarek

Hi,

As some of you know... developing TK can be time consuming. Does anyone know, even in 
its simplest form,  of a perl TK IDE tool? Idealy on the windows platform. Perl 
Builder doesn't really have a VC++ style IDE where you can create yoru window look and 
feel.


Regards,

Pierre Smolarek
Internet Production Manager

BBM Carlson,
Carlson Marketing Group

--
This message contains privileged and confidential information intended only
for the use of the addressee named above.  If you are not the intended
recipient of this message, you are hereby notified that you must not
disseminate, copy or take any action in reliance on it.  Any views expressed
in this message are those of the individual sender, except where the sender
specifically states them to be the views of the company.




Re: perl interpreter

2001-08-01 Thread Pierre Smolarek

not strictly true, you can use activestates perl2exe or whatever its called
now to embed the interpreter into the script and make it an exe... file size
is at least 300 - 400k but it will do what you ask :)

remember, this is NOT machine compiled perl, its just fusing the two into
one.


- Original Message -
From: "Sascha Kersken" <[EMAIL PROTECTED]>
To: "Matthias Staudinger" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, August 01, 2001 1:20 PM
Subject: Re: perl interpreter


> Hi!
>
> You just CAN'T.
> What you have to do is install a Perl interpreter on each computer you
want
> to run Perl scripts on.
> The best - and most easily to install - distribution for Windows systems
is
> ActivePerl which can be downloaded at www.activestate.com
>
> Sascha
>
> --
> >Von: Matthias Staudinger <[EMAIL PROTECTED]>
> >An: "perl" <[EMAIL PROTECTED]>
> >Betreff: perl interpreter
> >Datum: Mit, 1. Aug 2001 14:07 Uhr
> >
>
> > Sorry, I am an absolut beginner, started with perl on Saturday ;) !
> >
> > Can anybody tell me if - and how - it is possible to start my
perl-scripts on
> > computers without a perl interpreter, without an installed perl - on
> > windows-computers of my coworkers?
> >
> >
> >
> > Thanks
> >
> > Matthias
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: isWindows95() and isWIndowsNT()

2001-07-26 Thread Pierre Smolarek

$ENV{OS}

will get you the os on some platforms,. run this simple script on your
systems and check it out..

foreach (keys(%ENV)){
 print "\$ENV{$_} $ENV{$_} \n";
}


pierre

- Original Message -
From: "Barry Carroll" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 26, 2001 1:17 PM
Subject: isWindows95() and isWIndowsNT()


> Hi all,
>
> This is my first post :)
>
> I once saw functions such as the ones above for perl.
>
> I am writing a script and I want to be able to determine
> the machine's Operating System type.
>
> Does anyone know where i can get these functions or
> similar ones to determine the OS type.
>
> I know how to get the OSType for a UNIX system, it's
> just windows that i'm having trouble with.
>
> Thanks! :)
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Elegent way to extract blank lines from arrays..?

2001-07-23 Thread Pierre Smolarek

define elegant :)

my @array1 = ('foo','','bar');
my (@array2);
foreach my $key (@array1) {
 if ($key ne "") {
  push(@array2, $key);
 }
}
undef(@array1)'
@array1 = @array2;
undef(@array2)'

# @array1 is now cleaned

thats A way sure you could code it in a cleaner way... you want me to?
hu hu? can i?

Pierre

- Original Message -
From: "Zysman, Roiy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 23, 2001 9:59 AM
Subject: Elegent way to extract blank lines from arrays..?


> Hi Guys and Girls,
> Does anyone have an idea of an elegent way to
> extract certain item from an array (not the last one or the first one).
> The array should remain in a right order after the extraction.
> tanx.
>
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Making a perl script a stand-alone executable

2001-07-18 Thread Pierre Smolarek

god i really should check my spelling.. too much off a rushed email.. my
appologise...


- Original Message -
From: "Pierre Smolarek" <[EMAIL PROTECTED]>
To: "Luca Veraldi" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, July 18, 2001 11:25 AM
Subject: Re: Making a perl script a stand-alone executable


> for unix try perlcc that comes with perl.. still very experimantal, for
> windows you can buy perl2exe or get the active state pack that has a perl
> "compiler".
>
> be wared... ill it does is include the parser within the script and
compile
> it. Your file size will be at least 500k+. perlcc is experimental and it
> looks for your code to see the librarys used and only compile those.
However
> i think perlcc went backwards recently in a bid to make it more stable...
it
> tends to just throw the whole perl parse in.
>
> Someone correct me if i'm wrong somewhere, i'm sure i am :)
>
> Pierre
>
> - Original Message -
> From: "Luca Veraldi" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, July 18, 2001 10:28 AM
> Subject: Making a perl script a stand-alone executable
>
>
> Dear Sirs,
>
> is there an utility I can use to convert a perl script into an executable
> file? That is a binary one?
>
> 
> Visit me at http://www.supremo.3000.it/
> and sign in my Guest Book or email me at
> [EMAIL PROTECTED]
> ICQ# 115368178
>
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Making a perl script a stand-alone executable

2001-07-18 Thread Pierre Smolarek

for unix try perlcc that comes with perl.. still very experimantal, for
windows you can buy perl2exe or get the active state pack that has a perl
"compiler".

be wared... ill it does is include the parser within the script and compile
it. Your file size will be at least 500k+. perlcc is experimental and it
looks for your code to see the librarys used and only compile those. However
i think perlcc went backwards recently in a bid to make it more stable... it
tends to just throw the whole perl parse in.

Someone correct me if i'm wrong somewhere, i'm sure i am :)

Pierre

- Original Message -
From: "Luca Veraldi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 18, 2001 10:28 AM
Subject: Making a perl script a stand-alone executable


Dear Sirs,

is there an utility I can use to convert a perl script into an executable
file? That is a binary one?


Visit me at http://www.supremo.3000.it/
and sign in my Guest Book or email me at
[EMAIL PROTECTED]
ICQ# 115368178



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Validation question

2001-07-17 Thread Pierre Smolarek

http://www.indigostar.com/sendmail.htm


- Original Message -
From: "Customer Service" <[EMAIL PROTECTED]>
To: "Perl Beginners" <[EMAIL PROTECTED]>
Sent: Tuesday, July 17, 2001 1:22 PM
Subject: FW: Validation question


>
> Thanks a bunch for everyone's input; I didn't have to wait long at all
> to receive an answer from all of you knowledgeable people.  A few
questions:
> What smtp server software would you recommend I use to send email to
> myself (localhost)?  I have win98se, apache, activestate_perl.
> And, How do I use CGI.pm to parse a form's output?  Do I just do:
>
> #!c:/perl/bin/perl -w
>
> use CGI.pm
>
> # Then something like
>
> print "Content-type: text/html\n\n";
> print header;
> foreach $key (sort keys(%formdata)) {
>print "The field named$key
>contained $formdata{$key}";
>}
>
> # Does anyone have a nicely customizable form validation script I can
> use instead of "reinventing" one?
>
> Also, it seems that there are a number of programmers on this list who
feel
> passionate about validating scripts server-side.  Since I do my validation
> using javascript, then send it to the server so that "formmail.pl" can
chew
> on it.  The example below has been modified to run on my machine for
testing
> purposes.  Normally, it is on the remote host.
> ##
>  "http://127.0.0.1/cgi-bin/form_parse.pl"; name = "cattlemancustomForm">
>  type="hidden" name="recipient" value="[EMAIL PROTECTED]">
>  type="hidden"  name="subject" value="Cattleman form submittal">
>  type="hidden"  name="title" value="Info">
> ###
>
> So, if I use a server-side validation script, how do keep my email addr
> hidden from clients, (refer to above example?
>
> Thanks,
> Nathan @ [EMAIL PROTECTED]
> 
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Validation question

2001-07-17 Thread Pierre Smolarek

It is possible to install sendmail on windows, you could consider that.
Other then that, i have no major experience with smtp on win 9x :) use
windows 2000? There is an smtp part of it.

Pierre


- Original Message -
From: "Customer Service" <[EMAIL PROTECTED]>
To: "Perl Beginners" <[EMAIL PROTECTED]>
Sent: Tuesday, July 17, 2001 1:22 PM
Subject: FW: Validation question


>
> Thanks a bunch for everyone's input; I didn't have to wait long at all
> to receive an answer from all of you knowledgeable people.  A few
questions:
> What smtp server software would you recommend I use to send email to
> myself (localhost)?  I have win98se, apache, activestate_perl.
> And, How do I use CGI.pm to parse a form's output?  Do I just do:
>
> #!c:/perl/bin/perl -w
>
> use CGI.pm
>
> # Then something like
>
> print "Content-type: text/html\n\n";
> print header;
> foreach $key (sort keys(%formdata)) {
>print "The field named$key
>contained $formdata{$key}";
>}
>
> # Does anyone have a nicely customizable form validation script I can
> use instead of "reinventing" one?
>
> Also, it seems that there are a number of programmers on this list who
feel
> passionate about validating scripts server-side.  Since I do my validation
> using javascript, then send it to the server so that "formmail.pl" can
chew
> on it.  The example below has been modified to run on my machine for
testing
> purposes.  Normally, it is on the remote host.
> ##
>  "http://127.0.0.1/cgi-bin/form_parse.pl"; name = "cattlemancustomForm">
>  type="hidden" name="recipient" value="[EMAIL PROTECTED]">
>  type="hidden"  name="subject" value="Cattleman form submittal">
>  type="hidden"  name="title" value="Info">
> ###
>
> So, if I use a server-side validation script, how do keep my email addr
> hidden from clients, (refer to above example?
>
> Thanks,
> Nathan @ [EMAIL PROTECTED]
> 
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Policy on file attachments

2001-07-16 Thread Pierre Smolarek

ideally you wouldn't

its ok if the attachment is ~ 10k though

Pierre

- Original Message -
From: "Kipp, James" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 3:43 PM
Subject: Policy on file attachments


> Just wondering what the policy on sending file attachments to the list !
>
> I have a script I am trying to debug but it pretty long, and I was
wondering
> if I could send as an attachment, or should I just include in the email ?
>
> Thanks
>
> Jim
>
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: A Drive

2001-07-12 Thread Pierre Smolarek

what os ?

windows ?

- Original Message -
From: "justin todd" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 12, 2001 8:46 AM
Subject: A Drive


> A bit off the topic but does anyone know how to or even if it is possible
to
> auto run the A drive (Stiffy discs).
>
> TIA
>
> Justin
>




Re: Is there an alternative to CGI ???

2001-07-11 Thread Pierre Smolarek

never new that :)

Stupid me for not trying it

thanks!

Pierre

- Original Message -
From: "Jon Farmer" <[EMAIL PROTECTED]>
To: "'Pierre Smolarek'" <[EMAIL PROTECTED]>; "Kipp, James"
<[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, July 11, 2001 3:14 PM
Subject: RE: Is there an alternative to CGI ???


> >
> > Personaly, i like ASP for the fact you can do <%=$var%>
> > instead of php's  > print $var; ?>
> >
>
> 
>
> Works fine in PHP
>
> Regards
>
> Jon




Re: Is there an alternative to CGI ???

2001-07-11 Thread Pierre Smolarek

/me thinks we should now stop this discussion as we have now covered this
whole topic at least 3 times

refer to my previous posts.

As always kevin (not an attack at you), your right,  but enough is enough
with defining cgi in this thread :)

Pierre

- Original Message -
From: "Kevin Meltzer" <[EMAIL PROTECTED]>
To: "Pierre Smolarek" <[EMAIL PROTECTED]>
Cc: "Kipp, James" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, July 11, 2001 2:55 PM
Subject: Re: Is there an alternative to CGI ???


> I'd like to clarify that CGI is Common Gateway Interface. It is not a
> language. You can write CGI with PHP, ASP, Perl, Python, shell, C,
> etc... So, no matter what you use to create dynamic pages, it is still
> CGI.
>
> mod_perl is a good suggestion, since you will have perl available to
> you in Apache, as opposed to spawning another process. However, the
> original post seemed concerned about memory, and a mod_perl enabled
> Apache uses more memory (size vs. speed tradeoff).
>
> Some good benchmarks can be seen http://www.chamas.com/bench/index.html
> concerning speed.
>
> Anyways, use whichever server/language suits your needs best.. but
> remember, Perl is not CGI, CGI is not Perl, you can use various
> languages as CGI.
>
> Cheers,
> Kevin
>
> On Wed, Jul 11, 2001 at 02:08:21PM +0100, Pierre Smolarek
([EMAIL PROTECTED]) spew-ed forth:
> > /me introduces you to mod_perl and Apache::ASP
> >
> > - Original Message -
> > From: "Kipp, James" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, July 11, 2001 2:03 PM
> > Subject: RE: Is there an alternative to CGI ???
> >
> >
> > > Well there is ASP and PHP and cold fusion.
> > > PHP is becoming quite popular
> > > you might want to check into fastCGI, check the apache web site for
that
> > >
> > >
> > > > -Original Message-
> > > > From: George S Pereira [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, July 11, 2001 6:15 AM
> > > > To: Michael Fowler
> > > > Cc: [EMAIL PROTECTED]
> > > > Subject: Re: Is there an alternative to CGI ???
> > > >
> > > >
> > > >
> > > > Michael,
> > > > My aim is to create a website using Perl for
> > > > dynamically creating
> > > > the webpages. But I don't want to use CGI, because I read
> > > > that since CGI
> > > > create a seperate connection for every user, it thereby uses
> > > > more memory,
> > > > than say an ASP application.
> > > >
> > > > I don't mind using CGI, but if there are other options
> > > > available,
> > > > then I want to look thru them also.
> > > >
> > > >
> > > > George Savio Pereira
> > > > 
> > > > Email : [EMAIL PROTECTED]
> > > >
> > > >
> > > > On Wed, 11 Jul 2001, Michael Fowler wrote:
> > > >
> > > > > On Wed, Jul 11, 2001 at 01:52:58PM +0530, George S Pereira wrote:
> > > > > > Using CGI as a bridge between Perl and the Internet has some
> > > > > > disadvantages, prominent is the increased use of memory.
> > > > >
> > > > > I'm not sure how you can say one of CGI's disadvantages is
> > > > increased use of
> > > > > memory when you aren't comparing it to anything.
> > > > >
> > > > > Also, let's be very clear; CGI is not a bridge between Perl and
the
> > > > > Internet, it's a protocol between a web server and an
> > > > application.  There
> > > > > are many things wrong with saying it's a "bridge between
> > > > Perl and the
> > > > > Internet", not the least of which is the fact that CGI is
> > > > used only in one
> > > > > domain, the web.  Granted, this is a fairly visible domain,
> > > > but it is not
> > > > > the whole of the internet.
> > > > >
> > > > >
> > > > > > Is there another alternative for connecting Perl with
> > > > the Internet
> > > > > > other than CGI  (Like maybe using Perl with ASP!!!)
> > > > >
> > > > > There are other ways of dynamically generating web content
> > > > with Perl.  With
> > > > > the Apache web server the primary (possibly only, I can't
> > > > think of any
> > > > > others) alternative is mod_perl.  With mod_perl you setup
> > > > hooks inside the
> > > > > web server for authenticating users, generating content,
> > > > and various other
> > > > > things.
> > > > >
> > > > > This is all very generic and academic, though.  What is
> > > > your overall goal?
> > > > >
> > > > >
> > > > > Michael
> > > > > --
> > > > > Administrator  www.shoebox.net
> > > > > Programmer, System Administrator   www.gallanttech.com
> > > > > --
> > > > >
> > > > >
> > > >
> > > >
> >
>
> --
> [Writing CGI Applications with Perl - http://perlcgi-book.com]
> Disciple   - Master, which came first?  The chicken or the egg?
> Zen Master - The chicken *is* the egg!




Re: Is there an alternative to CGI ???

2001-07-11 Thread Pierre Smolarek

ASP is a structure, not to dissimilar to PHP... whats there to hate about
either? They both do the job, and get rid of the chores with ease
(GET,POST,COOKIEs). Whats so hard about wrapping your code around <% %> or


Personaly, i like ASP for the fact you can do <%=$var%> instead of php's 

VBASP sucks
JSASP is a good standard alternative if stuck on IIS
PerlScript ASP on IIS is very slow

Apache::ASP (apache mod_perl and the asp structure fused together in
servlets, with the option of Apache::DBI to retain a connection to a
database (remember to up your max connections to account for idle servers)
is the fast parsed, embedded language with persistant SQL on the planet to
date). EDITOR NOTE: Subsitute manson for Apache::ASP if your a manson fan,
the fact is its perl baby, perl!! :)

Pierre


- Original Message -
From: "Kipp, James" <[EMAIL PROTECTED]>
To: "'Pierre Smolarek'" <[EMAIL PROTECTED]>
Sent: Wednesday, July 11, 2001 2:12 PM
Subject: RE: Is there an alternative to CGI ???


> yes, great tools but you are making assumptions here.
> Personally I hate ASP but 
>
>
> > -Original Message-
> > From: Pierre Smolarek [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, July 11, 2001 9:08 AM
> > To: Kipp, James; [EMAIL PROTECTED]
> > Subject: Re: Is there an alternative to CGI ???
> >
> >
> > /me introduces you to mod_perl and Apache::ASP
> >
> > - Original Message -
> > From: "Kipp, James" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, July 11, 2001 2:03 PM
> > Subject: RE: Is there an alternative to CGI ???
> >
> >
> > > Well there is ASP and PHP and cold fusion.
> > > PHP is becoming quite popular
> > > you might want to check into fastCGI, check the apache web
> > site for that
> > >
> > >
> > > > -Original Message-
> > > > From: George S Pereira [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, July 11, 2001 6:15 AM
> > > > To: Michael Fowler
> > > > Cc: [EMAIL PROTECTED]
> > > > Subject: Re: Is there an alternative to CGI ???
> > > >
> > > >
> > > >
> > > > Michael,
> > > > My aim is to create a website using Perl for
> > > > dynamically creating
> > > > the webpages. But I don't want to use CGI, because I read
> > > > that since CGI
> > > > create a seperate connection for every user, it thereby uses
> > > > more memory,
> > > > than say an ASP application.
> > > >
> > > > I don't mind using CGI, but if there are other options
> > > > available,
> > > > then I want to look thru them also.
> > > >
> > > >
> > > > George Savio Pereira
> > > > 
> > > > Email : [EMAIL PROTECTED]
> > > >
> > > >
> > > > On Wed, 11 Jul 2001, Michael Fowler wrote:
> > > >
> > > > > On Wed, Jul 11, 2001 at 01:52:58PM +0530, George S
> > Pereira wrote:
> > > > > > Using CGI as a bridge between Perl and the Internet has some
> > > > > > disadvantages, prominent is the increased use of memory.
> > > > >
> > > > > I'm not sure how you can say one of CGI's disadvantages is
> > > > increased use of
> > > > > memory when you aren't comparing it to anything.
> > > > >
> > > > > Also, let's be very clear; CGI is not a bridge between
> > Perl and the
> > > > > Internet, it's a protocol between a web server and an
> > > > application.  There
> > > > > are many things wrong with saying it's a "bridge between
> > > > Perl and the
> > > > > Internet", not the least of which is the fact that CGI is
> > > > used only in one
> > > > > domain, the web.  Granted, this is a fairly visible domain,
> > > > but it is not
> > > > > the whole of the internet.
> > > > >
> > > > >
> > > > > > Is there another alternative for connecting Perl with
> > > > the Internet
> > > > > > other than CGI  (Like maybe using Perl with ASP!!!)
> > > > >
> > > > > There are other ways of dynamically generating web content
> > > > with Perl.  With
> > > > > the Apache web server the primary (possibly only, I can't
> > > > think of any
> > > > > others) alternative is mod_perl.  With mod_perl you setup
> > > > hooks inside the
> > > > > web server for authenticating users, generating content,
> > > > and various other
> > > > > things.
> > > > >
> > > > > This is all very generic and academic, though.  What is
> > > > your overall goal?
> > > > >
> > > > >
> > > > > Michael
> > > > > --
> > > > > Administrator  www.shoebox.net
> > > > > Programmer, System Administrator   www.gallanttech.com
> > > > > --
> > > > >
> > > > >
> > > >
> > > >
> >
> >




Re: Is there an alternative to CGI ???

2001-07-11 Thread Pierre Smolarek

/me introduces you to mod_perl and Apache::ASP 

- Original Message - 
From: "Kipp, James" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 11, 2001 2:03 PM
Subject: RE: Is there an alternative to CGI ???


> Well there is ASP and PHP and cold fusion.
> PHP is becoming quite popular
> you might want to check into fastCGI, check the apache web site for that
> 
> 
> > -Original Message-
> > From: George S Pereira [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, July 11, 2001 6:15 AM
> > To: Michael Fowler
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: Is there an alternative to CGI ???
> > 
> > 
> > 
> > Michael,
> > My aim is to create a website using Perl for 
> > dynamically creating
> > the webpages. But I don't want to use CGI, because I read 
> > that since CGI
> > create a seperate connection for every user, it thereby uses 
> > more memory,
> > than say an ASP application.
> > 
> > I don't mind using CGI, but if there are other options 
> > available,
> > then I want to look thru them also.
> > 
> > 
> > George Savio Pereira
> > 
> > Email : [EMAIL PROTECTED]
> > 
> > 
> > On Wed, 11 Jul 2001, Michael Fowler wrote:
> > 
> > > On Wed, Jul 11, 2001 at 01:52:58PM +0530, George S Pereira wrote:
> > > > Using CGI as a bridge between Perl and the Internet has some
> > > > disadvantages, prominent is the increased use of memory. 
> > > 
> > > I'm not sure how you can say one of CGI's disadvantages is 
> > increased use of
> > > memory when you aren't comparing it to anything.
> > > 
> > > Also, let's be very clear; CGI is not a bridge between Perl and the
> > > Internet, it's a protocol between a web server and an 
> > application.  There
> > > are many things wrong with saying it's a "bridge between 
> > Perl and the
> > > Internet", not the least of which is the fact that CGI is 
> > used only in one
> > > domain, the web.  Granted, this is a fairly visible domain, 
> > but it is not
> > > the whole of the internet.
> > > 
> > >  
> > > > Is there another alternative for connecting Perl with 
> > the Internet
> > > > other than CGI  (Like maybe using Perl with ASP!!!)
> > > 
> > > There are other ways of dynamically generating web content 
> > with Perl.  With
> > > the Apache web server the primary (possibly only, I can't 
> > think of any
> > > others) alternative is mod_perl.  With mod_perl you setup 
> > hooks inside the
> > > web server for authenticating users, generating content, 
> > and various other
> > > things.
> > > 
> > > This is all very generic and academic, though.  What is 
> > your overall goal?
> > > 
> > > 
> > > Michael
> > > --
> > > Administrator  www.shoebox.net
> > > Programmer, System Administrator   www.gallanttech.com
> > > --
> > > 
> > > 
> > 
> >




Re: Is there an alternative to CGI ???

2001-07-11 Thread Pierre Smolarek

Guys, we all know what he was trying to say, lets not pick on him for how he
phrased it, after all, this is a beginners mailing list!!!

We have defined what CGI is to perl time and time again. Now lets give him a
straight answer without all the attitude.

Is there an alternative to CGI, in a word, no. However i know what your
saying, and as i said in my email. Your alternative are things like
Apache::ASP

Memory, there is no way to get round... You can't expect something from
nothing. Stick more ram in an reap the benefits!

Pierre

- Original Message -
From: "Michael Fowler" <[EMAIL PROTECTED]>
To: "Aaron Craig" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, July 11, 2001 10:14 AM
Subject: Re: Is there an alternative to CGI ???


> On Wed, Jul 11, 2001 at 10:28:46AM +0200, Aaron Craig wrote:
> > You may be confusing your terms here.  CGI (Common Gateway Interface) is
a
> > general term that is used to describe the various methods used to
> > communicate between a host computer and a client through a network.
There
> > are many languages that can be used to handle this communication, such
as
> > Perl and even C++ (does anyone do that anymore?).  However, if you're
> > talking internet, you're talking CGI, no matter what you use to run your
> > communication.
>
> Yow, you're confusing your terms.  CGI is not a general term to describe
> internet communications, it's a very specific protocol between a web
server
> and an application, an application executed by the web server for handling
a
> request.
>
>
> Michael
> --
> Administrator  www.shoebox.net
> Programmer, System Administrator   www.gallanttech.com
> --




Re: Is there an alternative to CGI ???

2001-07-11 Thread Pierre Smolarek

Apache::ASP might interest you, however, your'll still have your memory
problem as Mod_Perl stores within memory the servlet. Mod_perl is infamous
for using large amounts of ram, but hey, thats a GOOD thing in my book.
Better RAM then CPU/HDD

Machine code is still faster and less resource intensive, however production
time will grow like you've never seen before. We still use C++ for the
backend for BA.com. In my opinion you don't need this speed unless you get
millions of hits a month/day to a database driven system, and even then,
your hardware (RAID) needs to bee fast to keep up with the demand.

PHP uses less resources and is arguably quicker at this point in time. It is
designed for one job only, the web.

JSP is way to slow and its only plus is the wealth of JAVA developers out
there.

If you want power, modular support, speed, Mod_perl, and inparticular,
Apache::ASP is the current leader in my eyes.

Pierre


- Original Message -
From: "Aaron Craig" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 11, 2001 9:28 AM
Subject: Re: Is there an alternative to CGI ???


> You may be confusing your terms here.  CGI (Common Gateway Interface) is a
> general term that is used to describe the various methods used to
> communicate between a host computer and a client through a network.  There
> are many languages that can be used to handle this communication, such as
> Perl and even C++ (does anyone do that anymore?).  However, if you're
> talking internet, you're talking CGI, no matter what you use to run your
> communication.
>
> At 13:52 11.07.2001 +0530, George S Pereira wrote:
>
> >Hi all,
> >
> > Using CGI as a bridge between Perl and the Internet has some
> >disadvantages, prominent is the increased use of memory.
> >
> > Is there another alternative for connecting Perl with the
Internet
> >other than CGI  (Like maybe using Perl with ASP!!!)
> >
> >
> >George Savio Pereira
> >
> >Email : [EMAIL PROTECTED]
>
> Aaron Craig
> Programming
> iSoftitler.com




Re: using getopt specifying ARGV values per flag

2001-07-04 Thread Pierre Smolarek

use Getopt::Std;

?

- Original Message -
From: <[EMAIL PROTECTED]>
To: "Perl Discuss" <[EMAIL PROTECTED]>
Sent: Wednesday, July 04, 2001 3:54 PM
Subject: using getopt specifying ARGV values per flag


> my script is as follows:
>
> #!/usr/bin/perl -w
>
> use strict;
> my $domain;
> my $path;
> my %option;
>
> getopts("nhfc",\%option);
>
> i have 4 options set.
>
> typically two will be used together n and f, however i am sure that end
> users will type in 'script -fn' and 'script -nf'. my concern is that each
> of these flags takes an argument. i use the value of -n's argument to set
> the value of $domain and the value of -f's argument to set the value of
> $path. this works very well when i run the script as:
>
> script -nf domain.com client
>
> but when i try mixing the two up, or trying something like:
>
> script -f client -n domain.com
>
> i still get the incorrect output. i am sure this is because i am setting
> the values based on their order within @ARGV:
>
> #if -n, then set $domain equal to the argument
> if ($option{n}) {
>   $domain = $ARGV[0];
>   shift @ARGV;
>   add();
> }
>
> #if -f, then set $path
> if ($option{f}) {
>   $path = "/etc/nameserver/$ARGV[0]";
>   shift @ARGV;
>   update();
> }
>
> i cant think of a way to ensure that the correct argument gets attached to
> the right process, but i'm sure i am not the first person to run up
> against this :)
>
> a perldoc ref will suffice. thanks!




perlcc DynaLoader error, fix?

2001-07-04 Thread Pierre Smolarek

undefined reference to `boot_DynaLoader'

Is there a fix to the above error.. i thought i read somewhere that there was 
perlcc used to work a dream, then i upgraded to 5.6.1 and it has never worked since

Pierre




CPU Priority

2001-07-04 Thread Pierre Smolarek

Is it possibly, and if so how, to change the cpu priority of a perl script or its 
forked children?


Regards,

Pierre



Re: A Split Question

2001-07-03 Thread Pierre Smolarek

err.. make that "sleep better"

kinda got side tracked with work :}


- Original Message -----
From: "Pierre Smolarek" <[EMAIL PROTECTED]>
To: "John Edwards" <[EMAIL PROTECTED]>; "'Will Crain'"
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, July 03, 2001 3:59 PM
Subject: Re: A Split Question


> I stand by my reply to this post. Sure, unpack is quicker. But if you use
> regex, i always prefer to use my own defined regex's
>
> my $dateis = "2Jul2001";
> my ($date,$month,$year) = $dateis =~ /([0-9]+)([A-Za-z]+)([0-9]+)/;
>
> It makes me sleeper at night
>
>
> - Original Message -
> From: "John Edwards" <[EMAIL PROTECTED]>
> To: "'Will Crain'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Tuesday, July 03, 2001 3:54 PM
> Subject: RE: A Split Question
>
>
> > Sorry to pick holes in your first post to the list ;) but this part of
> your
> > suggested regex
> >
> > (\w{3,})
> >
> > will match any alphanumeric character (i.e it will match on the numbers
or
> > letters in the string). By limiting it to three places, you force the
> match
> > to work. It's not good practice though.
> >
> > Matching on a non-digit character will produce the same result, with
more
> > flexibility.
> >
> > So
> >
> > ($day, $month, $year) = $date =~ /(\d+)(\D+)(\d+)/;
> > ^ ^^
> > | ||
> > Match one or more numbers ||
> >   ||
> >   Match one or more NON numbers|
> >|
> >  Match one or more numbers again
> >
> > HTH
> >
> > John
> >
> >
> > -Original Message-
> > From: Will Crain [mailto:[EMAIL PROTECTED]]
> > Sent: 03 July 2001 15:41
> > To: [EMAIL PROTECTED]
> > Subject: RE: A Split Question
> >
> > -- Original Message --
> >
> > >My file has dates in it that either come out as "2Jul2001" or
> "21Jul2001".
> > > So one or two digits for the day, three for the month, and four for
the
> > >year.
> > >
> > >So I would like to split out the day, month, year, and am interested in
> > >splitting techniques, where there are no delimeters.
> > >
> >
> > This is my first contribution to the list, I hope it helps.  You should
> > be able to extract your date data using this regex -
> >
> > ($day, $month, $year) = $date =~ /(\d{1,2})(\w{3,})(\d{4})/;
> >
> > This assumes $date contains your date string and results in $day, $month
> > and $year containing the individual data bits.
> >
> > Will
> >
> >
> >
> > Visit iWon.com - the Internet's largest guaranteed cash giveaway! Click
> > here now for your "Thank You" gift:
> > http://www.iwon.com/giftcenter/0,2612,,00.html?t_id=20157
> >
> >
> >
> >
> > --Confidentiality--.
> > This E-mail is confidential.  It should not be read, copied, disclosed
or
> > used by any person other than the intended recipient.  Unauthorised use,
> > disclosure or copying by whatever medium is strictly prohibited and may
be
> > unlawful.  If you have received this E-mail in error please contact the
> > sender immediately and delete the E-mail from your system.
> >




Re: A Split Question

2001-07-03 Thread Pierre Smolarek

I stand by my reply to this post. Sure, unpack is quicker. But if you use
regex, i always prefer to use my own defined regex's

my $dateis = "2Jul2001";
my ($date,$month,$year) = $dateis =~ /([0-9]+)([A-Za-z]+)([0-9]+)/;

It makes me sleeper at night


- Original Message -
From: "John Edwards" <[EMAIL PROTECTED]>
To: "'Will Crain'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, July 03, 2001 3:54 PM
Subject: RE: A Split Question


> Sorry to pick holes in your first post to the list ;) but this part of
your
> suggested regex
>
> (\w{3,})
>
> will match any alphanumeric character (i.e it will match on the numbers or
> letters in the string). By limiting it to three places, you force the
match
> to work. It's not good practice though.
>
> Matching on a non-digit character will produce the same result, with more
> flexibility.
>
> So
>
> ($day, $month, $year) = $date =~ /(\d+)(\D+)(\d+)/;
> ^ ^^
> | ||
> Match one or more numbers ||
>   ||
>   Match one or more NON numbers|
>|
>  Match one or more numbers again
>
> HTH
>
> John
>
>
> -Original Message-
> From: Will Crain [mailto:[EMAIL PROTECTED]]
> Sent: 03 July 2001 15:41
> To: [EMAIL PROTECTED]
> Subject: RE: A Split Question
>
> -- Original Message --
>
> >My file has dates in it that either come out as "2Jul2001" or
"21Jul2001".
> > So one or two digits for the day, three for the month, and four for the
> >year.
> >
> >So I would like to split out the day, month, year, and am interested in
> >splitting techniques, where there are no delimeters.
> >
>
> This is my first contribution to the list, I hope it helps.  You should
> be able to extract your date data using this regex -
>
> ($day, $month, $year) = $date =~ /(\d{1,2})(\w{3,})(\d{4})/;
>
> This assumes $date contains your date string and results in $day, $month
> and $year containing the individual data bits.
>
> Will
>
>
>
> Visit iWon.com - the Internet's largest guaranteed cash giveaway! Click
> here now for your "Thank You" gift:
> http://www.iwon.com/giftcenter/0,2612,,00.html?t_id=20157
>
>
>
>
> --Confidentiality--.
> This E-mail is confidential.  It should not be read, copied, disclosed or
> used by any person other than the intended recipient.  Unauthorised use,
> disclosure or copying by whatever medium is strictly prohibited and may be
> unlawful.  If you have received this E-mail in error please contact the
> sender immediately and delete the E-mail from your system.
>




Re: A Split Question

2001-07-03 Thread Pierre Smolarek

my $dateis = "2Jul2001";
my ($date,$month,$year) = $dateis =~ /([0-9]+)([A-Za-z]+)([0-9]+)/;

print "$date - $month - $year \n";

:)

with regards,

Pierre

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 03, 2001 12:24 PM
Subject: A Split Question


>
> Hi.
>
> My file has dates in it that either come out as "2Jul2001" or "21Jul2001".
So one or two digits for the day, three for the month, and four for the
year.
>
> So I would like to split out the day, month, year, and am interested in
splitting techniques, where there are no delimeters.
>
> Of course, I could just test the length and then use substr it all out, or
even sprintf it into a new variable with a pad at the first character.
>
> But this is perl, and I reckon there are much cooler ways to do it.
>
> Any takers?
>
> Paul.
>
>
>
> 
> Global WebMail -
>   Delivered by Global Internet www.global.net.uk
> 
>
>




Idea.. OCR in perl?

2001-06-29 Thread Pierre Smolarek

Does anyone know if there is either a c app that will take an image and ocr
it ? (Character recognition)

That would be cool as you could develop some nice apps with that in perl.

Pierre




Re: Fork (not the kind you eat with)

2001-06-29 Thread Pierre Smolarek

Small problem with the below code how can you control the MAX amount of
children you have?

- Original Message -
From: "Chas Owens" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 28, 2001 7:07 PM
Subject: Re: Fork (not the kind you eat with)


> A parent can fork as many times as it wants to (for that matter a child
> could fork as well).  So your code would look like this:
>
> $SIG{CHLD} = "IGNORE"; #works on unix platforms, auto reaps children
> foreach $machine (get_machines()) {
> $pid = fork;
> if ($pid == 0) { #I am a child
> check_machine($machine);
> } elsif (not $pid) {
> #if parent then $pid = process id, if error then
> #$pid = undef
> error();
> }
> }
>
> On 28 Jun 2001 17:03:39 +0100, Pierre Smolarek wrote:
> > The one thing in perl that gets my head all confused is fork.
> >
> > Can someone point me in the right direction (be it book, website, or
kind
> > enough to offer code).
> >
> > I need to make a script that has to check 16000 servers in around 6
minutes.
> > My rough maths works out that 44 checks a second are needed. Each server
> > check takes about 0.5 seconds to return, so the best bet is to fork each
> > individual check, the result of which gets added to mysql so no need to
have
> > a conversation going on between child and parent. Idealy i would like to
> > control the max amount children i have to, say, around 50.
> >
> > Any help would be greatful.
> >
> > (I have the cook book open but only seems to talk about a single parent
> > child pair..?!)
> >
> >
> > Pierre.
> >
> >
> --
> Today is Prickle-Prickle, the 33rd day of Confusion in the YOLD 3167
> Keep the Lasagna flying!
>




Re: Fork (not the kind you eat with)

2001-06-28 Thread Pierre Smolarek

Thanks a lot and thanks to the guy who mentioned those book, amazon has
my order :)

this code was exactly what i needed...


- Original Message -
From: "Chas Owens" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 28, 2001 7:07 PM
Subject: Re: Fork (not the kind you eat with)


> A parent can fork as many times as it wants to (for that matter a child
> could fork as well).  So your code would look like this:
>
> $SIG{CHLD} = "IGNORE"; #works on unix platforms, auto reaps children
> foreach $machine (get_machines()) {
> $pid = fork;
> if ($pid == 0) { #I am a child
> check_machine($machine);
> } elsif (not $pid) {
> #if parent then $pid = process id, if error then
> #$pid = undef
> error();
> }
> }
>
> On 28 Jun 2001 17:03:39 +0100, Pierre Smolarek wrote:
> > The one thing in perl that gets my head all confused is fork.
> >
> > Can someone point me in the right direction (be it book, website, or
kind
> > enough to offer code).
> >
> > I need to make a script that has to check 16000 servers in around 6
minutes.
> > My rough maths works out that 44 checks a second are needed. Each server
> > check takes about 0.5 seconds to return, so the best bet is to fork each
> > individual check, the result of which gets added to mysql so no need to
have
> > a conversation going on between child and parent. Idealy i would like to
> > control the max amount children i have to, say, around 50.
> >
> > Any help would be greatful.
> >
> > (I have the cook book open but only seems to talk about a single parent
> > child pair..?!)
> >
> >
> > Pierre.
> >
> >
> --
> Today is Prickle-Prickle, the 33rd day of Confusion in the YOLD 3167
> Keep the Lasagna flying!
>




Fork (not the kind you eat with)

2001-06-28 Thread Pierre Smolarek

The one thing in perl that gets my head all confused is fork.

Can someone point me in the right direction (be it book, website, or kind
enough to offer code).

I need to make a script that has to check 16000 servers in around 6 minutes.
My rough maths works out that 44 checks a second are needed. Each server
check takes about 0.5 seconds to return, so the best bet is to fork each
individual check, the result of which gets added to mysql so no need to have
a conversation going on between child and parent. Idealy i would like to
control the max amount children i have to, say, around 50.

Any help would be greatful.

(I have the cook book open but only seems to talk about a single parent
child pair..?!)


Pierre.




Re: Joining variables

2001-06-27 Thread Pierre Smolarek

 hahahahaha

 # This one has already been said, but hey.. thought i would make a bigger
 mess of it
 my ($newvar);
 my @new = ($var1,$cat,$var2,$cat,$var3);
 foreach (@new){
 $newvar .= $_;
 }

 #or

 # once again, already said, just making it obvious
 my @new = ($var1,$var2,$var3);
 $newvar = join("-",@new);

 #or even a bigger mess of the above.
 my (@new);
 push(@new, $var1);
 push(@new, $var2);
 push(@new, $var3);
 $newvar = join("-",@new);



> - Original Message -
> From: "Chas Owens" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 27, 2001 5:39 PM
> Subject: Re: Joining variables
>
>
> > So we have:
> >
> > $newvar = $var1."-".$var2."-".$var3;
> > $newvar = "$var1-$var2-$var3";
> >
> > $concat = '-';
> > $newvar .= $var1;
> > $newvar .= $concat;
> > $newvar .= $var2;
> > $newvar .= $concat;
> > $newvar .= $var3;
> >
> > $newvar = join "-", ($var1, $var2, $var3);
> > $newvar = join '', ($var1, '-', $var2, '-', $var3); #new varient
> > $newvar='';$newvar .= "$_-" foreach ($var1, $var2, $var3); chop $newvar;
> > $newvar = sprintf "%04d-%02d-%02d", $var1, $var2, $var3;
> > $newvar =~ s/.*/$var1-$var2-$var3/;
> >
> > Does this answer your question ?  Anybody else want to add a few
> > ways?  I think I am tapped.
> >
> > --
> > Today is Pungenday, the 32nd day of Confusion in the YOLD 3167
> > Kallisti!
> >
>




Re: Suggestions?

2001-06-27 Thread Pierre Smolarek

I learnt with Sams teach yourself perl in 21 days did teh trick here...
from that i graped the basics and then got reference books like Programming
perl, perl cookbook by oreilly

I have an html version of Sams, which i can send to you by request,

Pierre

- Original Message -
From: "Bill Pierson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 27, 2001 4:57 PM
Subject: Suggestions?


Greetings all - I realize this is a very broad question, however any
suggestions would be appreciated.

I'm looking to purchase good learning tools about programming in PERL. I've
been programming with it for several years, but I've never truly learned the
basics - just looked at other code and learned from that.
Specifically I'd like to learn from "ground zero" about variables, hashes,
etc. as well as MySQL connectivity.

I'd like to find something that is concise - I have several projects that
I'll be working on in the very near future, and fine-tuning my knowledge
would be of great benefit.

Again, any suggestions will be appreciated.






Re: Incrementing Strings

2001-06-27 Thread Pierre Smolarek

does this all mean that c++ is ACTUALLY D ?

hu. food for thought.

Pierre

- Original Message -
From: "Kevin Meltzer" <[EMAIL PROTECTED]>
To: "Paul Johnson" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; "Nick Transier" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Wednesday, June 27, 2001 4:38 PM
Subject: Re: Incrementing Strings


> On Wed, Jun 27, 2001 at 06:21:30PM +0200, Paul Johnson ([EMAIL PROTECTED])
spew-ed forth:
> > On Wed, Jun 27, 2001 at 11:07:12AM -0400, Kevin Meltzer wrote:
> > >
> > > Is that the reason? I would think --'a' would be z, but that is my own
> > > internal logic :)
> >
> > But ++'z' isn't 'a'.
>
> No, it is aa, the next logical thing to come after z. So, --a could be
> aa. or, to me, more logically z. But, I don't scream that my
> logic is always logical ;)
>
> > > But, why is --'a' (or any a-zA-Z) -1? Why doesn't, at least, it
evaluate
> > > 'a' to true (1) and --'a' = 0 (or undef, since I don't know why it
> > > should return a true value)? I guess there must be a reason, but it
> > > isn't documented from what I can see.
> >
> > Converting 'a' to a number gives 0.
>
> I'm not convinced on that. Being that magic is built in to make a++ into
> b.. so it isn't being converted to 0 in that case, which would make that
> statement false. Why would it be 0?
> Why not 1? Why is 'b' also converted to 0? Why not use it's ord() value?
> To me (again, internal, warped, logic) --a returning ` makes more sense
> than -1. z++ is aa, so why isn't aa-- reverted back to z? Why must --a
> be seemingly useless?
>
> Cheers,
> Kevin
>
> --
> [Writing CGI Applications with Perl - http://perlcgi-book.com]
> "Families is where out nation finds hope, where wings take dream."
> -- G.W. Bush, LaCrosse, WI 10/18/2000




Re: Joining variables

2001-06-27 Thread Pierre Smolarek

> On Wed, Jun 27, 2001 at 02:07:22PM +0100, Pierre Smolarek wrote:
> > $newvar = $var1."-".$var2."-".$var3;
> 
> or $newvar = "$var1-$var2-$var3";

or

$concat = '-';
$newvar .= $var1;
$newvar .= $concat;
$newvar .= $var2;
$newvar .= $concat;
$newvar .= $var3;

dude, you should really look this up in a book.. its pre-basic perl




Re: Joining variables

2001-06-27 Thread Pierre Smolarek

$newvar = $var1."-".$var2."-".$var3;


- Original Message -
From: "John Edwards" <[EMAIL PROTECTED]>
To: "'Diego Riaño'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, June 27, 2001 2:01 PM
Subject: RE: Joining variables


> This wouldn't be homework by any chance???
>
> -Original Message-
> From: Diego Riaño [mailto:[EMAIL PROTECTED]]
> Sent: 27 June 2001 13:59
> To: [EMAIL PROTECTED]
> Subject: Joining variables
>
>
> Hi Perl guys
>
> I have another problem:
>
> I have three variables working:
> $var1
> $var2 #and
> $var3
>
> I want to join these three variables in a new one, with some formar,
> something like that:
>
> $newvar will be $var1-$var2-$var3
> for example if:
>
> $var1=2000
> $var2=08 #and
> $var3=15
>
> then
>
> $newvar=2000-08-15
>
> I hope someone can help me
>
> Thanks in advances
>
> DiegoM
>
>
> --Confidentiality--.
> This E-mail is confidential.  It should not be read, copied, disclosed or
> used by any person other than the intended recipient.  Unauthorised use,
> disclosure or copying by whatever medium is strictly prohibited and may be
> unlawful.  If you have received this E-mail in error please contact the
> sender immediately and delete the E-mail from your system.
>