Gunnar Hjalmarsson schreef:
> Tom Phoenix:
>> Generally, top-posting is preferred in public forums.
>
> s/top-posting/bottom-posting/
http://en.wikipedia.org/wiki/Top-posting#Inline_replying
--
Affijn, Ruud
"Gewoon is een tijger."
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addit
Gunnar Hjalmarsson schreef:
> 1. Why is rewriting so bad? Personally I need to look up those
> extended patterns, and letting the s/// operator rewrite a single dot
> is easier to read IMO.
That is exactly why I suggested that the 5.10.x regex-optimiser should
take care of that. But only if it pa
Tom Phoenix schreef:
> Dr.Ruud:
>> Gunnar Hjalmarsson:
>>> Are you saying that \d is no longer equivalent to [0-9]?
>>> If so, which digits does \d match besides [0-9]?
>>
>> perl -wle'print "\x666"=~/\d/'
>
> perl -wle'print "\x666"=~/[0-9]/'
>
> They both match; it seems they're just matchi
Tom Phoenix wrote:
Generally, top-posting is preferred in public forums.
s/top-posting/bottom-posting/
--
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://learn.perl.org
On 11/13/07, Dr.Ruud <[EMAIL PROTECTED]> wrote:
> Gunnar Hjalmarsson schreef:
>
> > Are you saying that \d is no longer equivalent to [0-9]?
> > If so, which digits does \d match besides [0-9]?
>
> perl -wle'print "\x666"=~/\d/'
perl -wle'print "\x666"=~/[0-9]/'
They both match; it seems they'r
On Tuesday 13 November 2007 14:53, Tom Phoenix wrote:
>
> Generally, top-posting is preferred in public forums.
It is? That's news to me! :-(
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.p
Chas. Owens wrote:
On Nov 13, 2007 12:18 PM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote:
Chas. Owens wrote:
On Nov 13, 2007 10:58 AM, Chas. Owens <[EMAIL PROTECTED]> wrote:
snip
I believe you want /\d[a-z]{2}/i.
snip
Oops, I didn't pay attention to my own warning about \d, I should have sa
On 11/12/07, Siva Prasad <[EMAIL PROTECTED]> wrote:
> I am still stuck up with the below problem.
Generally, top-posting is preferred in public forums. Begin by quoting
the minimum, relevant, context; follow with whatever is new.
> Please help me in intalling DBD::mysql on WinXP
Have you ever b
Dr.Ruud wrote:
Gunnar Hjalmarsson schreef:
danlamb:
I need a regex to remove zeros after the . in a file name if they are
followed by another digit.
Example: XX.001 becomes XX.1
s/\.0+(?=[1-9])/./;
That rewrites the dot, and won't handle ".000".
I would write it like
s
On Tuesday 13 November 2007 13:15, [EMAIL PROTECTED] wrote:
> On Nov 13, 9:13 am, [EMAIL PROTECTED] (Randal L. Schwartz) wrote:
> > > long disclaimer> So, you have a one line question, and 15 lines of
> > disclaimer
>
> Oh, no, Randal, you didn't READ it, did you? Surely you are not
> specificall
"Tom Phoenix" schreef:
> shadkeene:
>> The problem is that when I parse the valid time, I just have a number
>> like 0030, so if Perl's valid time is 2330, it would be an absolute
>> difference of 2300 according to the math but only an hour difference
>> in time. Is there a function to subtract z
On Nov 13, 9:13 am, [EMAIL PROTECTED] (Randal L. Schwartz) wrote:
> disclaimer>
> So, you have a one line question, and 15 lines of disclaimer
Oh, no, Randal, you didn't READ it, did you? Surely you are not
specifically the "intended recipient" of the message, so you are
"strictly prohibited" fr
Gunnar Hjalmarsson schreef:
> danlamb:
>> I need a regex to remove zeros after the . in a file name if they are
>> followed by another digit.
>>
>> Example: XX.001 becomes XX.1
>
> s/\.0+(?=[1-9])/./;
That rewrites the dot, and won't handle ".000".
I would write it like
s/(?
On Tuesday 13 November 2007 12:02, Chas. Owens wrote:
> On Nov 13, 2007 12:55 PM, <[EMAIL PROTECTED]> wrote:
> >
> > my %napMD_ProgressCode = (
>
> snip
>
> > drawInputRowControlled('napMD_ProgressCode');
>
> snip
>
> That is because you are passing a scalar containing the string
> "napMD_Progress
On Tuesday 13 November 2007 09:55, [EMAIL PROTECTED] wrote:
> Folks,
Hello,
> I am having a problem dereferencing a hash and am hoping somebody can
> assist. I am getting the error:
It appears that you are actually having a problem creating a reference
to a hash.
perldoc perldata
perldoc perl
[EMAIL PROTECTED] schreef:
> use strict;
> my %napMD_ProgressCode = (
>[...]
> );
>
> sub drawInputRowControlled{
> my $ControlList = $_[0];
> my %ControlList = %$ControlList; #Problem line
>
> for my $i (sort keys %ControlList) {
> print qq{
> name='status'
>
"Jenda Krynicky" schreef:
> {
> my $static;
> sub foo {
> $static++;
> ...
> }
> }
There (the first declared version of) the variable $static is part of
the environment of foo(). Don't mistake that for staticness.
In Perl 5.8.8 you can enforce $static to be static, like this:
{
On Nov 13, 2007 12:55 PM, <[EMAIL PROTECTED]> wrote:
> Folks,
>
> I am having a problem dereferencing a hash and am hoping somebody can
> assist. I am getting the error:
>
> Can't use string ("napMD_ProgressCode") as a HASH ref
> while "strict refs" in use
snip
> my %napMD_Progres
"Jenda Krynicky" schreef:
> I'd definitely never ever do
>
> condition and my $x = blah();
That is what I said. It is "technically" OK to use it with a condition
that can not be decided at compile time, but I still recommend not to
use it.
--
Affijn, Ruud
"Gewoon is een tijger."
--
To uns
"Jenda Krynicky" schreef:
> if
>
> 0 and my $x;
>
> creates a static $x I call it a bug.
It's called a feature.
--
Affijn, Ruud
"Gewoon is een tijger."
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
Gunnar Hjalmarsson schreef:
> Are you saying that \d is no longer equivalent to [0-9]?
> If so, which digits does \d match besides [0-9]?
perl -wle'print "\x666"=~/\d/'
--
Affijn, Ruud
"Gewoon is een tijger."
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMA
Folks,
I am having a problem dereferencing a hash and am hoping somebody can
assist. I am getting the error:
Can't use string ("napMD_ProgressCode") as a HASH ref
while "strict refs" in use
for the code below. I have tried various combinations of brackets and
plus signs in the
On Nov 13, 2007 12:18 PM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote:
> Chas. Owens wrote:
> > On Nov 13, 2007 10:58 AM, Chas. Owens <[EMAIL PROTECTED]> wrote:
> > snip
> >> I believe you want /\d[a-z]{2}/i.
> > snip
> >
> > Oops, I didn't pay attention to my own warning about \d, I should have s
> ""Brown," == "Brown, Rodrick" <[EMAIL PROTECTED]> writes:
"Brown,> How can I split a string based on this char? Or even print it in perl
"Brown,> Thanks.
"Brown,> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
"Brown,> This message is intended o
Chas. Owens wrote:
On Nov 13, 2007 10:58 AM, Chas. Owens <[EMAIL PROTECTED]> wrote:
snip
I believe you want /\d[a-z]{2}/i.
snip
Oops, I didn't pay attention to my own warning about \d, I should have said
/[0-9][a-z]{2}/i
Are you saying that \d is no longer equivalent to [0-9]? If so, which
On 11/13/07, jeevs <[EMAIL PROTECTED]> wrote:
> Failed 2/6 test scripts, 66.67% okay. 29/116 subtests failed, 75.00%
> okay.
> I used the following command to check if all the dependencies are
> installed
>
> perl -M -e 'print $::VERSION'
>
> and to my surprise i found that all the dependencies w
On Nov 13, 2007 9:24 AM, Pau Marc Munoz Torres
<[EMAIL PROTECTED]> wrote:
> Hi
>
> I've created a function that return a float value the code for it is :
>
> create function IDR(pin1 varchar(20),pin4 varchar(20),pin6 varchar(20),pin7
> varchar(20),pin9 varchar(20),MOL varchar(20)) returns float
sn
On Nov 13, 2007 10:58 AM, Chas. Owens <[EMAIL PROTECTED]> wrote:
snip
> I believe you want /\d[a-z]{2}/i.
snip
Oops, I didn't pay attention to my own warning about \d, I should have said
/[0-9][a-z]{2}/i
The whole regex should be
$data =~ /^[a-z]{2,4} [0-9][a-z]{2}$/i;
Other things to be aware
On 11/13/07, I BioKid <[EMAIL PROTECTED]> wrote:
> I have around 1000 html files, I got it using different web crawling programs.
> I need to save this and use it as a part of a database.
> But all the files have links to cgi programs. All these CGI links are
> mentioned as /cgi-bin/foo/foo.pl as
On Nov 13, 2007 4:33 AM, <[EMAIL PROTECTED]> wrote:
> HI
>
> my conditions are
>
> //Code length rule (Min - 6 and Max-8)
> //leftmost character must be alpha character rule
> //first character of inward code must be numeric rule
> //second character of inward code must be alpha rule
> //third cha
On 11/13/07, Brown, Rodrick <[EMAIL PROTECTED]> wrote:
> How can I split a string based on this char? Or even print it in perl
Do you know specifically which character you want? Any character may
be represented by a backslash escape in a literal string. If you can
find your character on an ASCII
On Nov 13, 2007 9:56 AM, Brown, Rodrick <[EMAIL PROTECTED]> wrote:
>
> How can I split a string based on this char? Or even print it in perl
> Thanks.
snip
I assume you are talking about the Start of Header ASCII control
character. This is character 1 in the ASCII set, so you should be
able to sp
How can I split a string based on this char? Or even print it in perl
Thanks.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -
This message is intended only for the personal and confidential use of the
designated recipient(s) named above. If you are no
hi,
Tanks for your help, finally i found the "source" command. It work like
this:
mysql> source /Lhome/geruppa/mhc/Pack_Ref_web/prova.sql
2007/11/9, Michael Gargiullo <[EMAIL PROTECTED]>:
>
> On Fri, 2007-11-09 at 13:22 +0100, Pau Marc Munoz Torres wrote:
>
> > Hi everybody
> >
> > I'm writin
On Nov 12, 7:51 pm, [EMAIL PROTECTED] (Gunnar Hjalmarsson) wrote:
> s/\.0+(?=[1-9])/./;
Thank you Gunnar. This did exactly what I needed.
Dan Lamb
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
Hi
I've created a function that return a float value the code for it is :
create function IDR(pin1 varchar(20),pin4 varchar(20),pin6 varchar(20),pin7
varchar(20),pin9 varchar(20),MOL varchar(20)) returns float
DETERMINISTIC
begin
declare output float;
Hi Forum,
It happened that i tried installing Net::SSH::Perl from cpan. After
a long haul and installing most of the dependencies it happend that
installation was aborted in between with the message.
##
Failed Test Stat Wstat Total Fail Failed
HI Rodrick Brown,
Yes I realize that how my previous mail has made such a
inconvenience to you and all the wisdoms of perl community
.Really I regret for the inconvenience. On
thinking of more grisp what I was comming to ask , my way
of asking questions was differed.
Thanks for ur
Hey all,
I have around 1000 html files, I got it using different web crawling programs.
I need to save this and use it as a part of a database.
But all the files have links to cgi programs. All these CGI links are
mentioned as /cgi-bin/foo/foo.pl as path.
I dont have local copy of these programs a
On Nov 13, 2007 4:33 AM, <[EMAIL PROTECTED]> wrote:
> HI
>
>
> my conditions are
>
>
> //Code length rule (Min - 6 and Max-8)
>
> //leftmost character must be alpha character rule
>
> //first character of inward code must be numeric rule
>
> //second character of inward code must be alpha rule
>
>
On Nov 13, 2007 7:01 PM, Tobias L <[EMAIL PROTECTED]> wrote:
> Anyway I have a more technical question about the fact that my CPAN won't
> install ANYTHING AT ALL!
What're the error messages you got? What OS are you using? Have you
set the network and DNS correctly?
--
To unsubscribe, e-mail: [
Hi All.
First I would like to say this is my first email to this mail list I have
read it for quite some time and solved problems mainly by myself this far -
nothing particularly advanced yet.
Anyway I have a more technical question about the fact that my CPAN won't
install ANYTHING AT ALL!
Can t
HI
my conditions are
//Code length rule (Min - 6 and Max-8)
//leftmost character must be alpha character rule
//first character of inward code must be numeric rule
//second character of inward code must be alpha rule
//third character of inward code must be alpha rule
//space in position
43 matches
Mail list logo