Re: issue wit sysopen

2011-04-10 Thread Shawn H Corey
On 11-04-10 06:06 AM, John W. Krahn wrote: Values that get bitwise ANDed together. That would be "ORed together". ;) -- Just my 0.0002 million dollars worth, Shawn Confusion is the first step of understanding. Programming is as much about organization and communication as it is about

Re: issue wit sysopen

2011-04-10 Thread John W. Krahn
Shlomi Fish wrote: On Sunday 10 Apr 2011 11:03:51 Sunita Rani Pradhan wrote: $i =~ s/d|b/G/ig; Thsi should be : $line =~ s/[db]/G/ig; Or possibly even: $line =~ tr/dbDB/G/; John -- Any intelligent fool can make things bigger and more complex... It takes a

Re: issue wit sysopen

2011-04-10 Thread John W. Krahn
shawn wilson wrote: On Apr 10, 2011 4:05 AM, "Sunita Rani Pradhan" wrote: sysopen(DATA,"list1.txt",O_RDWR|O_TRUNC); Why not just use open with +< ? I've never seen the benefit of sysopen unless you're working with a stream. Also, I don't know those options are compatible with each other.

Re: issue wit sysopen

2011-04-10 Thread shawn wilson
On Apr 10, 2011 4:05 AM, "Sunita Rani Pradhan" wrote: > > sysopen(DATA,"list1.txt",O_RDWR|O_TRUNC); > Why not just use open with +< ? I've never seen the benefit of sysopen unless you're working with a stream. Also, I don't know those options are compatible with each other. > It is failing with

Re: issue wit sysopen

2011-04-10 Thread Shlomi Fish
Hi Sunita. A few comments on your code. On Sunday 10 Apr 2011 11:03:51 Sunita Rani Pradhan wrote: > Hi All > > > > I have following simple code : > > > > === > > use warnings; > Add "use strict;". > > > sysopen(DATA,"list1.txt",O_RDWR|O_TRUNC); 1. Don't us