AW: Kindly explain special variable $|

2009-05-28 Thread Thomas Bätzler
sanket vaidya sanket.vai...@patni.com asked: It would be great if some of you write a simple code which has two different outputs for $| = 0 $| = 1 to demonstrate the difference. Try this with different values for $| #!/usr/bin/perl -w use strict; $| = 1; for ( 1..20 ){ print .; warn !

RE: Kindly explain special variable $|

2009-05-28 Thread sanket vaidya
-Original Message- From: Thomas Bätzler [mailto:t.baetz...@bringe.com] Sent: Thursday, May 28, 2009 11:57 AM To: beginners@perl.org Cc: sanket vaidya Subject: AW: Kindly explain special variable $| sanket vaidya sanket.vai...@patni.com asked: It would be great if some of you write

Range Operator Question

2009-05-28 Thread sanket vaidya
Hi, I came across this statement about 'range' operators somewhere. There is very little difference between $x..$y and $x...$y, and if the second operand is a constant then they are identical. What is the difference? Kindly explain with example. Thanks Regards, Sanket Vaidya

Re: Range Operator Question

2009-05-28 Thread Chas. Owens
On Thu, May 28, 2009 at 07:51, sanket vaidya sanket.vai...@patni.com wrote: Hi, I came across this statement about 'range' operators somewhere. There is very little difference between $x..$y and $x...$y, and if the second operand is a constant then they are identical. What is the

Re: Kindly explain special variable $|

2009-05-28 Thread Chas. Owens
On Thu, May 28, 2009 at 06:23, sanket vaidya sanket.vai...@patni.com wrote: snip This code gave some vague picture in my mind about flushing. To summarize When we write some data, the data is not written (to terminal or file) instantly, but is collected in buffer is only written when the

Re: intermediate perl list???

2009-05-28 Thread Randal L. Schwartz
John == John W Krahn jwkr...@shaw.ca writes: John ITYM: comp.lang.perl.misc John comp.lang.perl was killed off many years ago. Where many is 15 now. 1994 if I recall. I was made the comp.lang.perl.announce moderator in the same action. -- Randal L. Schwartz - Stonehenge Consulting

suppressing Use of uninitialized value in pattern match (m//)

2009-05-28 Thread admin2
How can I suppress the first Use of uninitialized value in pattern match (m//) warning message. code and output are below. code # cat ./fix_archive.pl #!/usr/bin/perl use warnings; use strict; my @files = * unless /.mbox^/; foreach my $file (@files) { print $file . \n; }

Re: suppressing Use of uninitialized value in pattern match (m//)

2009-05-28 Thread Dr.Ruud
admin2 wrote: How can I suppress the first Use of uninitialized value in pattern match (m//) warning message. code and output are below. Don't suppress a message, but fix the problem. my @files = * unless /.mbox^/; This is the only pattern match in your script, so that is the line

Re: Parsing TXT document and output to XML

2009-05-28 Thread Jim Gibson
On 5/27/09 Wed May 27, 2009 3:27 PM, Stephen Reese rsre...@gmail.com scribbled: List, I've been working on a method to parse a PDF or TXT document and output the results to XML over at Experts Exchange. http://www.experts-exchange.com/Programming/Languages/Scripting/Perl/Q_2443963 0.html

RE: Range Operator Question

2009-05-28 Thread sanket vaidya
-Original Message- From: Chas. Owens [mailto:chas.ow...@gmail.com] Sent: Thursday, May 28, 2009 5:55 PM To: sanket vaidya Cc: beginners@perl.org Subject: Re: Range Operator Question On Thu, May 28, 2009 at 07:51, sanket vaidya sanket.vai...@patni.com wrote: Hi, I came across this

RE: Range Operator Question

2009-05-28 Thread sanket vaidya
-Original Message- From: sanket vaidya [mailto:sanket.vai...@patni.com] Sent: Friday, May 29, 2009 9:20 AM To: 'beginners@perl.org' Subject: RE: Range Operator Question -Original Message- From: Chas. Owens [mailto:chas.ow...@gmail.com] Sent: Thursday, May 28, 2009 5:55 PM To:

List of perl functions that work on LINUX not in Windows

2009-05-28 Thread sanket vaidya
Hi all, Kindly provide a list of perl functions that work on LINUX but not on windows. Also provide the list of functions that behave differently on Windows LINUX. This not project requirement. I just want to explore the functions on LINUX. So far I have been using ActiveState Perl on

Re: Range Operator Question

2009-05-28 Thread Chas. Owens
On Thu, May 28, 2009 at 23:49, sanket vaidya sanket.vai...@patni.com wrote: snip Can anyone write few simple codes explaining the behavior that Chas mentioned, So that I can explore the codes for getting better picture? snip #!/usr/bin/perl use strict; use warnings; use Data::Dumper; my @a =

RE: readdir() question

2009-05-28 Thread Ajay Kumar
Hi Here (.) means current directory (..) means parent directory But you are getting (..) and (...) Because you kept one (.) in map{{$_.\n} Remove the (.) after $_ you will get correct output Thanks Ajay -Original Message- From: Telemachus [mailto:telemac...@arpinum.org] Sent:

Re: List of perl functions that work on LINUX not in Windows

2009-05-28 Thread Chas. Owens
On Fri, May 29, 2009 at 00:30, sanket vaidya sanket.vai...@patni.com wrote: snip Kindly provide a list of perl functions that work on LINUX but not on windows. Also provide the list of functions that behave differently on Windows LINUX. This not project requirement. I just want to explore the