comp.lang.perl.misc
  Home FAQ Contact Sign in
comp.lang.perl.misc only
 
Advanced search
December 2006
motuwethfrsasuw
    123 48
45678910 49
11121314151617 50
18192021222324 51
25262728293031 52
2006
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
comp.lang.perl.misc Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Help with variable with regex inside.         


Author: timb
Date: Dec 3, 2006 23:05

Hello.
I am writing a perl program that takes in a config file with different
regular expressions and parameters to parse dates. The date is in the
format of 2006/12/03 and I want it in the format of 12/03/2006 so I can
split it into the $month, $day, and $year

Config file:

TitleRegex = ^(\d{4})\/(\d{2})\/(\d{2})
DateRegex = $2/$3/$1

Config loading method:

open (CONFIG, "configfile.config") ||
die "Couldn't load config file for some reason";
Show full article (1.00Kb)
6 Comments
  <<<<<<<<<< Free nude girls on video and live webcam for xmass >>>>>>>>>>         


Author: your
Date: Dec 3, 2006 23:02

Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="PART_BOUNDARY_NMASIIXAUD"

--PART_BOUNDARY_NMASIIXAUD
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

http://nude-r-us.no-ip.info/
http://kintoesti.no-ip.info/
--PART_BOUNDARY_NMASIIXAUD
Content-Type: application/octet-stream; name="merry xmas.html"
Content-Transfer-Encoding: base64
Mime-Version: 1.0

PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDMuMiBGSU5BTC8vRU4iPg0K
PEhUTUw+DQo8SEVBRD4NCjxNRVRBIEhUVFAtRVFVSVY9IkNvbnRlbnQtVHlwZSIgQ09OVEVOVD0i
dGV4dC9odG1sOyBjaGFyc2V0PUlTTy04ODU5LTEiPg0KPE...
Show full article (15.64Kb)
no comments
  FAQ 3.10 Is there an IDE or Windows Perl Editor?         


Author: PerlFAQ Server
Date: Dec 3, 2006 18:03

This is an excerpt from the latest version perlfaq3.pod, which
comes with the standard Perl distribution. These postings aim to
reduce the number of repeated questions as well as allow the community
to review and update the answers. The latest version of the complete
perlfaq is at http://faq.perl.org .

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

3.10: Is there an IDE or Windows Perl Editor?

Perl programs are just plain text, so any editor will do.

If you're on Unix, you already have an IDE--Unix itself. The UNIX
philosophy is the philosophy of several small tools that each do one
thing and do it well. It's like a carpenter's toolbox.

If you want an IDE, check the following (in alphabetical order, not
order of preference):

Eclipse
http://e-p-i-c.sf.net/

The Eclipse Perl Integration Project integrates Perl
editing/debugging with Eclipse.

Enginsite
http://www.enginsite.com/
Show full article (7.93Kb)
no comments
  Re: If Perl support inline scripting...         


Author: Andrew DeFaria
Date: Dec 3, 2006 16:44

Charlton Wilbur wrote:
>>>>>> "AD" == Andrew DeFaria DeFaria.com> writes:
>
>>> Mixing logic and presentation code in the way that PHP and
>>> ePerl encourage is, frankly, stupid. It works well enough for
>>> small one-off sites, but leads to poor architecture and poor
>>> maintainability.
>
>> Yeah like all of those PHP forums and apps like Jinzora. Those
>> are all totally useless...
>
> Do you understand the difference between "poorly designed and
> difficult to maintain" and "useless"?
Yes. Do you understand the difference between stupid and useless?
> My experience in PHP, what little I've done, is that once you hit a
> certain size this thing that you consider a useful feature becomes a
> liability, and the programmers wind up needing to enforce a separation
> between logic and presentation themselves or the project becomes
> unmaintainable. As I've said, it works well enough for small one-off
> sites, but leads to poor architecture and maintainbility. ...
Show full article (3.67Kb)
1 Comment
  Re: If Perl support inline scripting...         


Author: Andrew DeFaria
Date: Dec 3, 2006 16:38

Justin C wrote:
> In article comcast.com>, Andrew
> DeFaria DeFaria.com> wrote:
>> Charlton Wilbur wrote:
>>>> well, i just thought that, if it is part-of-the-perl, then a
>>>> lot of people will consider using perl as the dynamic scripting
>>>> language for web page, rather than php, for example.
>>>
>>> Mixing logic and presentation code in the way that PHP and ePerl
>>> encourage is, frankly, stupid. It works well enough for small
>>> one-off sites, but leads to poor architecture and poor maintainability.
>> Yeah like all of those PHP forums and apps like Jinzora. Those are
>> all totally useless...
> Charlton didn't say they were useless.
OK, those are all totally stupid.
>>> Why do you think that altering Perl to make it more attractive to
>>> the ignorant and lazy will be an improvement?
>> Huh? Do you even understand what he's asking for? How is it
>> "attractive to the ignorant and lazy" to want to have Perl easily
>> available when writing a web page?!? Oh sure you can use CGI but then ...
Show full article (4.66Kb)
no comments
  Re: Bareword errors?         


Author: Gunnar Hjalmarsson
Date: Dec 3, 2006 15:35

krakle@visto.com wrote:
> On Dec 3, 4:37 pm, Gunnar Hjalmarsson wrote:
>>3. Still, my belief is that using such arguments for advocating the use
>>of CGI.pm _does_ give the incorrect impression that you write
>>significantly more secure CGI programs only by using it.
>
> Gunnar, would you agree that if a programmer chooses to parse his/her
> own form data the algorithm he/she uses must be thorough, complete and
> well tested for reliability?
>
> If so, would you advocate against using an identical sub-routine copied
> through out 10 CGI scripts? Programming with practical and logical
> sense you'd recommend the programmer to create a module with his/her
> thorough reliable code, right?
>
> If so (once again), why would you waste time rewriting an existing
> module if it meets HTTP standards if you're only going to use it in the
> most generic form?
>
> Would you really tell someone who is inexperienced (or even ...
Show full article (1.40Kb)
no comments
  Re: Bareword errors?         


Author: Sherm Pendley
Date: Dec 3, 2006 15:23

Gunnar Hjalmarsson writes:
> While I don't defend everything the OP in this thread said, neither do
> I think that _anybody_ should be chastised for using a totally
> harmless piece of code.

My point isn't that the specific code used by the OP was harmful. It is that
the OP (by his own admission) lacks the experience to judge whether it is
harmful or not.

That being the case, the wisest course is to use the widely-known standard,
at least until one gains the experience to make an informed decision in the
matter for one's self. To do otherwise, to choose code of unknown provenance
that hasn't had the extensive amount of community review that CGI.pm has had,
is both risky and foolish.

I do agree with you to the extent that there are occasions where using CGI.pm
is not the best choice. Do you seriously believe that "I couldn't figure out
how to make it work" is such an occasion? Review the thread - that's exactly
the reason the OP gave for not using CGI.pm.

sherm--
Show full article (1.14Kb)
no comments
  Re: Bareword errors?         


Author: Gunnar Hjalmarsson
Date: Dec 3, 2006 14:37

Sherm Pendley wrote:
> Gunnar Hjalmarsson writes:
>>krakle@visto.com wrote:
>>>... it also does ZERO error and safety handling which makes it open
>>>to all sorts of future and present catastrophes.
>>
>>
>>
>>>CGI.pm is the standard for parsing form data if you choose not to
>>>use it you are only limiting yourself and putting your web site,
>>>server and users at risk.
>>
>>Another one who naively believes that using CGI.pm for parsing the
>>input makes a significant difference as regards security.
>>
>>It does not.
>
> Gunnar, why do you persist with that straw-man argument?

It's not straw-man, it's both true and significant.
Show full article (2.05Kb)
no comments
  Re: Bareword errors?         


Author: Sherm Pendley
Date: Dec 3, 2006 13:37

Gunnar Hjalmarsson writes:
> krakle@visto.com wrote:
>> ... it also does ZERO error and safety handling which makes it open
>> to all sorts of future and present catastrophes.
>
>
>
>> CGI.pm is the standard for parsing form data if you choose not to
>> use it you are only limiting yourself and putting your web site,
>> server and users at risk.
>
> Another one who naively believes that using CGI.pm for parsing the
> input makes a significant difference as regards security.
>
> It does not.

Gunnar, why do you persist with that straw-man argument? Pointing out the
fact that CGI.pm securely parses CGI arguments does not imply a claim that
doing so is all that's needed to securely write CGI applications.
Show full article (1.60Kb)
no comments
  <<<<<<<<<< Find more stuff like sexy girls videos, livecams, pics. >>>>>>>>>>         


Author: your
Date: Dec 3, 2006 13:23

Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="PART_BOUNDARY_MAHVJWSYVY"

--PART_BOUNDARY_MAHVJWSYVY
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

http://nude-r-us.no-ip.info/
http://kintoesti.no-ip.info/
--PART_BOUNDARY_MAHVJWSYVY
Content-Type: application/octet-stream; name="Nude for you.html"
Content-Transfer-Encoding: base64
Mime-Version: 1.0

PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDMuMiBGSU5BTC8vRU4iPg0K
PEhUTUw+DQo8SEVBRD4NCjwhLS0gVFdPIFNURVBTIFRPIElOU1RBTEwgUE9QVVAgV0lORE9XOg0K
DQogICAxLiAgUGFzdGUgdGhlIGZpcnN0IGludG8gdGhlIE...
Show full article (3.58Kb)
no comments
 
1 2 3