oryann9 wrote:
Randal L. Schwartz - Stonehenge Consulting Services, Inc.
You're misusing it. Set it within the wanted() routine when you're
looking at a directory that you don't want to descend. It'll be
cleared to 0 before calling wanted(), so setting it before calling
find() is completely
- Original Message
From: oryann9 <[EMAIL PROTECTED]>
To: beginners@perl.org
Sent: Friday, January 11, 2008 2:32:11 PM
Subject: Re: find2perl
>You're misusing it. Set it within the wanted() routine when you're
>looking at
>a directory that you don't want to descend. It'll be cleared to
On Jan 16, 11:50 am, [EMAIL PROTECTED] (Zentara) wrote:
> On Tue, 15 Jan 2008 19:18:02 -0800 (PST), [EMAIL PROTECTED]
>
>
>
> (Turner) wrote:
> >On Jan 15, 9:23 am, [EMAIL PROTECTED] (Zentara) wrote:
> >> On Mon, 14 Jan 2008 20:26:05 -0800 (PST), [EMAIL PROTECTED]
>
> >> >> If you just want to hand
"Mike Martin" schreef:
> print if $source=~/$diff/sg
perldoc -f quotemeta
--
Affijn, Ruud
"Gewoon is een tijger."
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
Richie wrote:
Hi all,
I'm new to Perl.
Currently, I have a report that gets generated using format function
which gets output to a file.
>
Is it possible to be able to change the font or maybe convert the
output file to a Word document?
Presumably you are using Windows? Plain text files are
On Jan 7, 12:31 am, [EMAIL PROTECTED] wrote:
> Hi
> I'm trying to write a script that reads the data below, parses it, and
> then inserts it into the "info" table.
>
> 1:Karl Heiz:1:444-555-:441-551-6661:5:1:1:1
> 2:Helmut Schmidt:1:222-333-1234:222-555-4321:2:1:1:1
> 3:Udo Lindenberg:3:111-555
On Jan 16, 6:21 am, [EMAIL PROTECTED] (Rob Dixon) wrote:
> [EMAIL PROTECTED] wrote:
> > On Jan 15, 10:57 am, [EMAIL PROTECTED] (Gunnar Hjalmarsson) wrote:
> >> [EMAIL PROTECTED] wrote:
> >>> How do I change the value stored to a hash reference?
> >> C:\home>type test.pl
> >> my %hash = (
> >>
On Jan 16, 2008 8:57 AM, Shilpi Harpavat <[EMAIL PROTECTED]> wrote:
> I have a simple perl program on windows as below which i am trying to
> creat ean executable for.
Why?
I'm not trying to be sarcastic; I'm genuinely puzzled. What are you
trying to accomplish?
> C:\Perl\lib\CORE\perl.h(420) :
On Jan 16, 2008 8:23 AM, Diego . <[EMAIL PROTECTED]> wrote:
> yes, make test reports all tests passed when compiling 5.8.8 on both (
> fedora 4 and 6 ) but when i compible 5.6.2 on fedora 6 y get some
> errors on test but threads works fine even with some tests failed.
Well, "works fine" is good
Hi ,
I have a simple perl program on windows as below which i am trying to
creat ean executable for. But it fails with the errors below
#!c:\perl\bin\perl.exe
# simple hello world cgi script
print "Content-type: text/html\n\n";
print "\n";
$date = localtime();
print "Hello, world! on $date\n";
yes, make test reports all tests passed when compiling 5.8.8 on both (
fedora 4 and 6 ) but when i compible 5.6.2 on fedora 6 y get some
errors on test but threads works fine even with some tests failed.
On Jan 16, 2008 4:50 PM, Tom Phoenix <[EMAIL PROTECTED]> wrote:
> On Jan 16, 2008 4:47 AM, D
On Jan 16, 2008 7:06 AM, Mike Martin <[EMAIL PROTECTED]> wrote:
> Hi I am trying to extract about 10 lines of C code from a file.
> print if $source=~/$diff/sg
>
> which gives no output
That implies that the pattern didn't match. (Do you know what the /g
option is doing there? You probably don'
On Jan 16, 2008 3:19 AM, Rajpreet <[EMAIL PROTECTED]> wrote:
> I am trying to bcp in data to a table which is in different server.
> Though the bcp in works fine but the error file is not being created
> and rejected records are not being directyd to the error file. Query
> looks like:
>
> bcp ..
On Jan 16, 2008 4:47 AM, Diego . <[EMAIL PROTECTED]> wrote:
> i'm trying to compile perl 5.8.8
Does it pass all tests, when you run 'make test'?
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http:
From: Richie <[EMAIL PROTECTED]>
> Hi all,
>
> I'm new to Perl.
> Currently, I have a report that gets generated using format function
> which gets output to a file.
> Is it possible to be able to change the font or maybe convert the
> output file to a Word document?
You might
1) produce a word
May be being too simplistic but
What about
Perl -p -I -e "s/special/\special/g;" files
-Original Message-
From: Mike Martin [mailto:[EMAIL PROTECTED]
Sent: 16 January 2008 15:06
To: Beginners List
Subject: Ideas for matching several lines of code (C)
Hi I am trying to extract about 10
Hi I am trying to extract about 10 lines of C code from a file.
this is is basically what I am doing
I am changing every enstance of a special character to \special
character (to avoid errors)
then tryng to match this
ie:
print if $source=~/$diff/sg
which gives no output - any tips on how to
On Wednesday 16 January 2008, Peter Scott wrote:
> On Tue, 15 Jan 2008 15:13:29 -0500, Charlie Farinella wrote:
> > I need to monitor a directory and when a file is created, modify it.
> > I've been playing with Linux::Inotify2 and may be able to make that
> > work, but am wondering if this is s
if ( $str =~ /^[a-zA-Z0-9]+$/ ) {
# $str has only alpha-numberic characters
}
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
[EMAIL PROTECTED] wrote:
On Jan 15, 10:57 am, [EMAIL PROTECTED] (Gunnar Hjalmarsson) wrote:
[EMAIL PROTECTED] wrote:
How do I change the value stored to a hash reference?
C:\home>type test.pl
my %hash = (
key => {
refkey => 'oldvalue',
},
);
print "$hash{key}->{refkey}\n";
$
Hi every one!!
First of all i'm new on this list. I'm sorry if this is not the
correct place to ask my questions...
I got a program running with a custom-compiled perl version ( 5.6.2 )
on fedora core 4. The program works correcty with threads, and when i
send a sigterm to the parent thread it ki
[EMAIL PROTECTED] wrote:
On Jan 15, 10:57 am, [EMAIL PROTECTED] (Gunnar Hjalmarsson) wrote:
[EMAIL PROTECTED] wrote:
How do I change the value stored to a hash reference?
C:\home>type test.pl
my %hash = (
key => {
refkey => 'oldvalue',
},
);
print "$hash{key}->{refkey}\n";
$
Greetings,
I am trying to bcp in data to a table which is in different server.
Though the bcp in works fine but the error file is not being created
and rejected records are not being directyd to the error file. Query
looks like:
bcp ..test_b_plan_cp in /home/file_out.txt -c -t '|' -S *-U
***
I always use an if debug option like below, its so handy, so that you can
put all your debug output here. you can do different levels here too to make
things really funky :)
Pat
On Jan 16, 2008 7:17 AM, Jeremy Kister <[EMAIL PROTECTED]> wrote:
> On 1/15/2008 3:09 PM, S.A. Birl wrote:
> > Sometime
From: "J. Peng" <[EMAIL PROTECTED]>
> you may consider to use a pod section for commenting out a code block.
> I have used these ways, maybe not good, but they can be used.:)
>
> 1) put the code block in a subroutine,and never call that routine.
> sub no_use {
> code block
> }
>
> 2) assign t
On Tue, 15 Jan 2008 15:13:29 -0500, Charlie Farinella wrote:
> I need to monitor a directory and when a file is created, modify it.
> I've been playing with Linux::Inotify2 and may be able to make that
> work, but am wondering if this is something that people do routinely.
>
> My search at CPAN
Hi, guys, I encountered a confusing issue during my work. Here it is:
I wanna judge if the string is only consisted of assii chararters, but
without some special characters, like "\n", "\t".
I know I can do this by using two time of match, but is it possible to match
just once?
Any advice would
On Jan 15, 10:57 am, [EMAIL PROTECTED] (Gunnar Hjalmarsson) wrote:
> [EMAIL PROTECTED] wrote:
> > How do I change the value stored to a hash reference?
>
> C:\home>type test.pl
> my %hash = (
> key => {
> refkey => 'oldvalue',
> },
> );
> print "$hash{key}->{refkey}\n";
> $hash{k
S.A. Birl wrote:
Sometimes I find the need to comment out a block temporarily.
My roots go back to C where I could quickly throw a
#if 0
#endif
around a section of code to prevent a section of getting compiled.
is there something similar for PERL?
No, but there is something for Perl[1]:
perld
29 matches
Mail list logo