Re: Opening .dat file in perl

2006-10-30 Thread Dr.Ruud
Goksie schreef: > #!perl > use warnings ; > use strict ; > my $fl = "c:/Perl/CDR_MSC_DAT/00016363.DAT"; That is probably not a line-oriented file. I would change that line to the more robust: my $fl = q{c:/Perl/CDR_MSC_DAT/00016363.DAT} ; because filenames can contain sigils etc. > { loca

Re: Opening .dat file in perl

2006-10-30 Thread Goksie
John W. Krahn wrote: > Goksie wrote: > >> Tommy Nordgren wrote: >> >>> On 20 okt 2006, at 21.31, Goke Aruna wrote: >>> >>> On 10/20/06, John W. Krahn <[EMAIL PROTECTED]> wrote: > Goksie wrote: > >> Can someone advice me on how i can open .dat

Re: Opening .dat file in perl

2006-10-24 Thread John W. Krahn
Goksie wrote: > Tommy Nordgren wrote: >>On 20 okt 2006, at 21.31, Goke Aruna wrote: >> >>>On 10/20/06, John W. Krahn <[EMAIL PROTECTED]> wrote: Goksie wrote: > >Can someone advice me on how i can open .dat file in perl script? open my $fh, '<', '00016367.DAT' or die "Cannot open '00

Re: Re: Opening .dat file in perl

2006-10-24 Thread Tom Phoenix
On 10/24/06, Goksie <[EMAIL PROTECTED]> wrote: Tommy Nordgren wrote: > This might occur because you are trying to print the file handle > instead of reading FROM it. print $fh; Yep, Tommy Nordgren nailed it. If you want to read binary data from a filehandle, you probably want to st

Re: Opening .dat file in perl

2006-10-24 Thread Goksie
Tommy Nordgren wrote: > > On 20 okt 2006, at 21.31, Goke Aruna wrote: > >> On 10/20/06, John W. Krahn <[EMAIL PROTECTED]> wrote: >>> >>> Goksie wrote: >>> > Thanks all for the past help >>> > >>> > Can someone advice me on how i can open .dat file in perl script? >>> >>> open my $fh, '<', '00016367

Re: Opening .dat file in perl

2006-10-21 Thread Tommy Nordgren
On 20 okt 2006, at 21.31, Goke Aruna wrote: On 10/20/06, John W. Krahn <[EMAIL PROTECTED]> wrote: Goksie wrote: > Thanks all for the past help > > Can someone advice me on how i can open .dat file in perl script? open my $fh, '<', '00016367.DAT' or die "Cannot open '00016367.DAT' $!";

Re: Opening .dat file in perl

2006-10-20 Thread Ken Foskey
On Fri, 2006-10-20 at 18:11 +0200, Goksie wrote: > Thanks all for the past help > > Can someone advice me on how i can open .dat file in perl script? > > The sample of the file is as attached. > > please, i need help on it. $ file 00016367.DAT 00016367.DAT: MPEG ADTS, layer I, v1, Monaural You

Re: Opening .dat file in perl

2006-10-20 Thread John W. Krahn
Goke Aruna wrote: > On 10/20/06, John W. Krahn <[EMAIL PROTECTED]> wrote: >> >> Goksie wrote: >> > Thanks all for the past help >> > >> > Can someone advice me on how i can open .dat file in perl script? >> >> open my $fh, '<', '00016367.DAT' or die "Cannot open '00016367.DAT' $!"; > > Each time i

Re: Opening .dat file in perl

2006-10-20 Thread Goke Aruna
On 10/20/06, John W. Krahn <[EMAIL PROTECTED]> wrote: Goksie wrote: > Thanks all for the past help > > Can someone advice me on how i can open .dat file in perl script? open my $fh, '<', '00016367.DAT' or die "Cannot open '00016367.DAT' $!"; John -- Perl isn't a toolbox, but a small machine

Re: Opening .dat file in perl

2006-10-20 Thread John W. Krahn
Goksie wrote: > Thanks all for the past help > > Can someone advice me on how i can open .dat file in perl script? open my $fh, '<', '00016367.DAT' or die "Cannot open '00016367.DAT' $!"; John -- Perl isn't a toolbox, but a small machine shop where you can special-order certain sorts of tools

Opening .dat file in perl

2006-10-20 Thread Goksie
Thanks all for the past help Can someone advice me on how i can open .dat file in perl script? The sample of the file is as attached. please, i need help on it. goksie > ÿÿÿ