Re: write smiley to file

2007-11-24 Thread Chas. Owens
On Nov 24, 2007 12:06 AM, Ken Perl <[EMAIL PROTECTED]> wrote: > I use following piece of code to write smiley Unicode string into a file, > > use Encode; > my $smiley = "\x{263a}"; > open my $out, ">:utf8", "file" or die "$!"; > print $out $smiley; > > however, if we dump the output file in binary

Re: Perl and JavaScript Issue

2007-11-24 Thread [EMAIL PROTECTED]
On Nov 24, 4:03 pm, [EMAIL PROTECTED] (Steven Sim) wrote: > Gurus; > > I have written a Perl CGI script to dynamically generate HTML and > Javascript code for a web page. > > The web page consist of two parts. > > The first part displays a list of directories. > > The Javascript code that does this

Re: Format the raw log.

2007-11-24 Thread Tom Phoenix
On 11/24/07, Avinash S <[EMAIL PROTECTED]> wrote: > I want to extract only the block which has the key word [WARNING] It sounds as if you wish to process many lines at once, rather than one line at a time. Is that right? > while () > chomp;chomp; Why two chomps? The first one removed th

Re: Format the raw log.

2007-11-24 Thread Avinash S
Hi, Yes, I have a trouble in parsing through the raw log. I am using the "-->" symbol to parse through the log. From -- --> Validating DNS Server Entries <-- -- Servers should conform to global ANYCast Standard

Re: Manually installing perl modules on windows

2007-11-24 Thread Jenda Krynicky
To: beginners@perl.org From: andy <[EMAIL PROTECTED]> Subject:Manually installing perl modules on windows Date sent: Fri, 23 Nov 2007 07:26:35 -0800 (PST) Organization: http://groups.google.com > Hi, > > I am trying to t

Re: Regex help

2007-11-24 Thread Rob Dixon
howa wrote: Hello, I want to match a query string, e.g. http://abc.com/test.cgi?TEST=1&.type=xmlrpc&type=2 I want to extract the .type, currently i use $ENV{"QUERY_STRING"} =~ /\.type=(.+?)(&|$)/; # This is okay but back reference seem no good, i rewrite as $ENV{"QUERY_STRING"} =~ /\.type=

Perl and JavaScript Issue

2007-11-24 Thread Steven Sim
Gurus; I have written a Perl CGI script to dynamically generate HTML and Javascript code for a web page. The web page consist of two parts. The first part displays a list of directories. The Javascript code that does this is dynamically generated by Perl. I use Perl's opendir function to ca

Re: find external ip address

2007-11-24 Thread Jenda Krynicky
From: doubleHelix <[EMAIL PROTECTED]> > ok i know how i can find my INERNAL ip address in a script with perl: > > use Socket; > print inet_ntoa(inet_aton("")) ."\n"; > > but how would I find my EXTERNAL ip address? Define external ... it's not as simple as it may sound. One de

Re: write smiley to file

2007-11-24 Thread Tom Phoenix
On 11/23/07, Ken Perl <[EMAIL PROTECTED]> wrote: > I use following piece of code to write smiley Unicode string > into a file, > > use Encode; > my $smiley = "\x{263a}"; > open my $out, ">:utf8", "file" or die "$!"; > print $out $smiley; > > however, if we dump the output file in binary mode, the

Re: find external ip address

2007-11-24 Thread Tom Phoenix
On 11/23/07, doubleHelix <[EMAIL PROTECTED]> wrote: > but how would I find my EXTERNAL ip address? If there's an IP address at which routers send traffic to your machine, your machine doesn't intrinsically know what it is. You generally have to ask some program such as ipconfig. Inquire in forums

Re: Manually installing perl modules on windows

2007-11-24 Thread Ron Bergin
On Nov 23, 7:26 am, [EMAIL PROTECTED] (Andy) wrote: > Hi, > > I am trying to talk to a programmable oven over serial port for heat > testing of a PCB. > > I am using ActiveState perl v5.8.8 on Windows XP. I am trying to > install the Win32:SerialPort package using Activestates Perl Package > Manage