Soham Das wrote:
The Code:
use strict;
use warnings;
use Tie::Handle::CSV;
my $qbook = Tie::Handle::CSV-new('C:\Documents and Settings\Soham
Das\Desktop\Quotes.csv',header=1);
my $tradebook = Tie::Handle::CSV-new('C:\Documents and Settings\Soham
Das\Desktop\Transactions.csv',header=1);
my
yes, I actually understood the problem but didnt have the brainwave to solve
it. Now its much better.
Yes indeed this will work much better.
Thank you,
John
From: John W. Krahn jwkr...@shaw.ca
To: Perl Beginners beginners@perl.org
Sent: Fri, 9 October, 2009
Is this code better?
I noticed, you missed some inverted commas,
So, at the risk of being pedantic, I am appending the code:
#!/usr/bin/perl
use strict;
use warnings;
use Tie::Handle::CSV;
my $qbook = Tie::Handle::CSV-new('C:\Documents and Settings\Soham
Das\Desktop\Quotes.csv',header=1);
my
2009/10/9 Soham Das soham...@yahoo.co.in:
When I compile this, it gives me an error like this:
Can't modify constant item in scalar assignment at Test.pl line 18, near };
So for the sake of clarity I highlited the Line 18.
'Action'=$trades-{'Action'},
A bit of help in this, will be great!
Philip,
I think, the way you went about solving the problem {might be very trivial for
you}, but laying bare your entire thought process, just taught something to me.
Thanks and I am sure, many other beginners have picked it up from here.
Yes,indeed after you pointed out to me, I
On Fri, Oct 09, 2009 at 02:57:44PM +0530, Soham Das wrote:
Yes,indeed after you pointed out to me, I (figuratively) kicked myself.
But those quotes are still ugly and unnecessary, as John showed.
--
Paul Johnson - p...@pjcj.net
http://www.pjcj.net
--
To unsubscribe, e-mail:
Hello All,
I am doing some file reading operation, and parsing the data(its a CSV file)
with a hash reference and then intend to store it in a record.
something like:
loop: until file ends;
$hashref-{'A'}=$filehandle-{'Action'};
$hashref-{'B'}=
At 10:14 PM -0700 10/8/09, Soham Das wrote:
Hello All, I am doing some file reading operation, and parsing the
data(its a CSV file) with a hash reference and then intend to store
it in a record. something like: loop: until file ends;
$hashref-{'A'}=$filehandle-{'Action'};
$hashref-{'B'}=
The code:
From: Jim Gibson jimsgib...@gmail.com
To: beginners@perl.org
Sent: Fri, 9 October, 2009 11:00:55 AM
Subject: Re: Building a record on the fly via hash of hashes
At 10:14 PM -0700 10/8/09, Soham Das wrote:
Hello All, I am doing some file reading
The Code:
use strict;
use warnings;
use Tie::Handle::CSV;
my $qbook = Tie::Handle::CSV-new('C:\Documents and Settings\Soham
Das\Desktop\Quotes.csv',header=1);
my $tradebook = Tie::Handle::CSV-new('C:\Documents and Settings\Soham
Das\Desktop\Transactions.csv',header=1);
my $dailytrade={};
my
10 matches
Mail list logo