Difference between "=>" and ">=" in Perl !

2008-07-23 Thread Amit Saxena
Hi all, I could be a very basic question but I am unable to find any answers on internet. What's the difference between "=>" and ">=" in Perl ? To the best of my knowledge, ">=" means greater than or equal to and "=>" is just used instead of comma to distinguish between key and values while assi

Diamond operator and quoted word?

2008-07-23 Thread Keedi Kim
I watched Dr. Damian Conway's speech on OSCON 2008 movie clip. And I saw unfamiliar syntax. I know quoted words... my @list = qw; and I know @ARGV or filehandle with diamond operator... my @lines = <$fh>; my $one_line = <>; But this expression is very suprising... my @list = ; Would anybody

Re: searching keys

2008-07-23 Thread Noah
Untested code. # Always... use strict; use warnings; my %ip = ...; #Get the lines as an array. my @lines = keys %ip; # Slight modification to the regex. Someone else's reply will probably have a more elegant method. my $ipSearch = qr/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/; # Use v

Re: searching keys

2008-07-23 Thread Noah
yitzle wrote Untested code. # Always... use strict; use warnings; my %ip = ...; #Get the lines as an array. my @lines = keys %ip; # Slight modification to the regex. Someone else's reply will probably have a more elegant method. my $ipSearch = qr/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,

Re: searching keys

2008-07-23 Thread Noah
Noah Untested code. # Always... use strict; use warnings; my %ip = ...; #Get the lines as an array. my @lines = keys %ip; # Slight modification to the regex. Someone else's reply will probably have a more elegant method. my $ipSearch = qr/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/;

Re: searching keys

2008-07-23 Thread yitzle
On Thu, Jul 24, 2008 at 3:59 AM, Noah <[EMAIL PROTECTED]> wrote: > > Hi there, > > I loaded a bunch of configuration lines into a hash called $Input > now I am searching the hash to make sure specific lines are there. > > I want to print "NO" unless there is a match to the following ""check $ip > h

searching keys

2008-07-23 Thread Noah
Hi there, I loaded a bunch of configuration lines into a hash called $Input now I am searching the hash to make sure specific lines are there. I want to print "NO" unless there is a match to the following ""check $ip here"; but $ip could be the range as shown below. so a key like "check 2.2

Re: How to convert the date ?

2008-07-23 Thread David Romero
The Date::Format and Date::Parse Modules are useful for manipulate dates yuo can see the documentation of this modules on http://search.cpan.org On Wed, Jul 23, 2008 at 5:28 PM, cc96ai <[EMAIL PROTECTED]> wrote: > we have string of date 2005-11-01 > > and want to display as > > November 1, 2005

How to convert the date ?

2008-07-23 Thread cc96ai
we have string of date 2005-11-01 and want to display as November 1, 2005 THanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Read File Problem

2008-07-23 Thread Gunnar Hjalmarsson
[EMAIL PROTECTED] wrote: How can I get the read line to read the entire file? That's a FAQ. perldoc -q "entire file" -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http:/

Re: perl2exe

2008-07-23 Thread Rob Dixon
epanda wrote: > > I am using perl2exe (Oct 27, 2001) and it works fine for little script > without several .pm and it does good binary conversion. > I am working without any install of perl8.8 or 10. > > Now I want to include Win32::process which includes others > dependencies and I would like t

Re: PAR packer Error

2008-07-23 Thread Rob Dixon
Roi wrote: > > I am trying to make an exe file from a perl script file. I am using > ActiveState Perl 5.8.6 (Build 811) on Windows. > This is the lcommand that i am running and the error msg: > > pp -o sp.exe spdisplaye.pl > Perl lib version (v5.8.6) doesn't match executable version (v5.8.8) at >

RE: Request for advice/suggestions....

2008-07-23 Thread Richard.Copits
Outstanding! I need to think about this a bit but it looks exactly like what I want to do. Thank you for your suggestions and ideas! -Original Message- From: Rob Dixon [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2008 3:46 PM To: beginners@perl.org Cc: Copits Dick Subject: Re: Requ

perl2exe

2008-07-23 Thread epanda
Hello I am using perl2exe (Oct 27, 2001) and it works fine for little script without several .pm and it does good binary conversion. I am working without any install of perl8.8 or 10. Now I want to include Win32::process which includes others dependencies and I would like to know if I can continu

Re: Request for advice/suggestions....

2008-07-23 Thread Rob Dixon
[EMAIL PROTECTED] wrote: > > I'm very new with PERL and have been given a task of doing some maint. on an > existing really big PERL program. What I'd like to ask is if the changes I > want to implement will work and ask for suggestions on how to make one major > change working with subroutines. >

PAR packer Error

2008-07-23 Thread Roi
Hello, I am trying to make an exe file from a perl script file. I am using ActiveState Perl 5.8.6 (Build 811) on Windows. This is the lcommand that i am running and the error msg: pp -o sp.exe spdisplaye.pl Perl lib version (v5.8.6) doesn't match executable version (v5.8.8) at C:/Perl/ ib/Config.p

Request for advice/suggestions....

2008-07-23 Thread Richard.Copits
I'm very new with PERL and have been given a task of doing some maint. on an existing really big PERL program. What I'd like to ask is if the changes I want to implement will work and ask for suggestions on how to make one major change working with subroutines. The application makes use of

Re: Read File Problem

2008-07-23 Thread Rob Dixon
[EMAIL PROTECTED] wrote: > > I am trying to read a text file with carriage returns and line feeds on a > unix system and for some reason it will read only one of text. I use the same > code in a different perl script and I can read a file that does not have > carriage returns and line feeds. >

Read File Problem

2008-07-23 Thread andrewmchorney
Hello I am trying to read a text file with carriage returns and line feeds on a unix system and for some reason it will read only one of text. I use the same code in a different perl script and I can read a file that does not have carriage returns and line feeds. The existing code is : open

XML::Simple Environment errors

2008-07-23 Thread Gorrebeeck, Robert
Hello all We recently migrated over to a new server and installed the new version of XML::Simple and am getting errors when I try to parse an XML file. I get an error stating: XMLin() requires either XML::SAX or XML::Parser I have verified that both modules are installed.

Window for Video output...

2008-07-23 Thread Michelle Konzack
Hello, I am trying to make a wmdock.app (64x64 pixel) and I have the need for a function which open a window which show the captured output of a Video- Telephonie stream of a GSM-Modem. Now my question: Is there a perl lib which can do such stuff? The window should contain only the Video and c