RE: PERL Compiler

2002-08-29 Thread Kristina Nairn
If you are using activestate try ppm install If you are using a different flavor try perl -MCPAN -e "install " Cheers, Kristina I wanted to get the additional modules, so I downloaded the stable.zip onto my NT machine and unzipped it, but I haven't been able to get it to recogni

Re: question

2002-07-10 Thread Kristina Nairn
=> [ qw(Austin Dallas Houston) ] ); I'd build the Location field only as I needed it for printing. foreach $state (sort keys %sites) { foreach $city (sort @{ $sites{$state} }) { print "Location = $city$state\n"; } } Cheers, Kristina Nairn -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to search & replace only the first 3 digitsof a 10 digit #? Newbie asks!

2002-01-30 Thread Kristina Nairn
The following should work say if you want to change the area code from 406 to 302   s/\b406(\d{7})\b/302$1/g   Basically, it looks for a 10 digit number beginning with 406, captures the last 7 digits, and replaces it with 302 and the same captured 7 digits.  I've treated it is separated by a

Re: How to search & replace only the first 3 digitsof a 10 digit #? Newbie asks!

2002-01-30 Thread Kristina Nairn
The following should work say if you want to change the area code from 406 to 302   s/\b406(\d{7})\b/302$1/g   Basically, it looks for a 10 digit number beginning with 406, captures the last 7 digits, and replaces it with 302 and the same captured 7 digits.  I've treated it is separated by a

Re: global matching

2001-12-19 Thread Kristina Nairn
Try using a positive lookahead assertion: while ( /a(?=a)/g){} Let me know if it works. ;-) - Original Message - From: "Bram Heyns" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 19, 2001 2:37 PM Subject: global matching I have a rather simple question, but I c

Re: Format of array in HTML text box gone weird...

2001-12-16 Thread Kristina Nairn
Try the following code: undef $"; print "@lines"; $" = " "; #there's a space between the two double quotes Otherwise you could just do this: print @lines; #without the double quotes default is no space or anything else That is to say if indeed you've got a 'print "@lines";' thing going on.