RE: Cleanest way to split this

2001-07-25 Thread Grant McLean
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > There's also the procedure in Mastering Regular Expressions: > (lifted from The Perl Cookbook) > > [CODE FOLLOWS] snip > [END OF CODE] > The assumption is the text based fields are enclosed in > quotes (like your example) As a matter of inte

RE: Reference found where even-sized list expected

2001-07-03 Thread Grant McLean
# also fine Which may or may not have helped :-) Regards Grant ===== Grant McLean | email: [EMAIL PROTECTED] | Lvl 6, BP House The Web Limited| WWW: www.web.co.nz| 20 Customhouse Quay Internet Solutions | Tel:

RE: Re[5]: Best practice for config file use?

2001-06-28 Thread Grant McLean
From: Tim Musson [mailto:[EMAIL PROTECTED]] > I like this option the best of the 3, but it is still hard to give to > a non programing person and not expect them to mess up setting the > vars... > > ie, => is what you separate things with, explaining which ' to > use (' not `), end each parameter

RE: Logo for learn.perl.org

2001-06-24 Thread Grant McLean
elves 'hey that looks pretty easy - why don't I take a deeper look'. Regards Grant ===== Grant McLean | email: [EMAIL PROTECTED] | Lvl 6, BP House The Web Limited| WWW: www.web.co.nz| 20 Customhous

RE: xml problem

2001-06-20 Thread Grant McLean
From: Nigel Wetters [mailto:[EMAIL PROTECTED]] > I don't know about how XML::Parser handles memory - last time > I tried to use it to parse content.rdf from http://dmoz.org , > it soaked up all my memory, then bombed. Sometimes, you need > to write your own parsing subs :) A casual reader coul

RE: parsing XML code -> problem with HASH

2001-05-03 Thread Grant McLean
x27;. In the unlikely event that you do need to work with mixed content, I'd recommend XML::XPath instead. Regards Grant ========= Grant McLean | email: [EMAIL PROTECTED] | Lvl 6, BP House The Web Limited| WWW: www

RE: Date stamping files

2001-05-01 Thread Grant McLean
You probably want to use Perl's built in 'localtime' function rather than system("date"). Here's an example: my($day, $month, $year) = (localtime())[3,4,5]; my $a = sprintf("%04u-%02u-%02u", $year + 1900, $month + 1, $day); Here's a walkthrough ... You can get the current time using time(