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
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
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
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,
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}/;
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
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
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
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/
[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:/
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
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
>
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
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
[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.
>
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
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
[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.
>
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
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.
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
21 matches
Mail list logo