Re: File with hash inside it
- From: "A. Sinan Unur" <1usa@xxxxxxxxxxxxxxxxxxx>
- Date: Tue, 30 Aug 2005 21:07:21 GMT
"phillyfan" <philly_fan1@xxxxxxxxxxx> wrote in
news:1125435734.882677.39690@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:
> I should have quoted as you say.
And yet you still do not quote. Hmmm ...
> open(OUT,">hash-table.txt");
Always, yes *always*, check if open succeeded:
open my $out, '>', 'hash-table.txt'
or die "Cannot open 'hash-table.txt for writing: $!";
> while( ( $key, $value) = each(%$href) ) {
> while( ($value1, $value2) = each %$value ){
I am not even going to presume to understand what you are doing here.
> if($value1 eq 'title'){next}
More Perl-like:
next if $value1 eq 'title';
> }close(OUT);
Do check if close succeded as well.
> exit 0;
Unnecessary.
Sinan
--
A. Sinan Unur <1usa@xxxxxxxxxxxxxxxxxxx>
(reverse each component and remove .invalid for email address)
comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
.
- References:
- File with hash inside it
- From: phillyfan
- Re: File with hash inside it
- From: Matija Papec
- Re: File with hash inside it
- From: phillyfan
- Re: File with hash inside it
- From: phillyfan
- Re: File with hash inside it
- From: Matija Papec
- Re: File with hash inside it
- From: phillyfan
- File with hash inside it
- Prev by Date: Re: DBI prepare and fetch
- Next by Date: Re: problem about the perl code. thanks for any comments
- Previous by thread: Re: File with hash inside it
- Next by thread: Re: Jargons of Info Tech industry
- Index(es):
Relevant Pages
|
|