Thanks Milller...
That moved me on past the step I was screaming at !!
Keith
User Profile
Collapse
-
hash / array / hash
Hi (again !)
I posted a question yesterday just for info on hashrefs which I have read and it makes sense. Putting this into proactive though has now toally confused me !
I have an XML file sucked into a hash via XML::Simple. That's OK. I can see the data using Data::Dumper.
I seem to have a Hash of Arrays, and those Arrays contain another hash.
All I am trying to do is get to the data but every route... -
Thanks Kevin,
That looks like exactly the kind of guide I've been searching for all day !!
KeithLeave a comment:
-
Understanding a hashref
Hi,.
Newbie dumb question time ! Could somebody either give me an iniots guide to hashrefs or point me in the direction of one ? I can not get my head around the structure.
I have sucked in an XML file using XML::Simple and can dump the data quite nicely to screen as per the following
[CODE=perl]
$VAR1 = {
'ORDER' => [
{
'ORDER_NUMBER' => 'W-21670-3',... -
Hi,
Sounds more like either your compiler or file system has block increments of 512bytes specified. Thjis is very normal on a unix based system - the larger block size uses more disk space but inreases other efficiencies.
I would suggest you investigate that route, then you should find you can add chunks to your code and get the more precise size changes you require.
KeithLeave a comment:
-
Hi Miller,
One more question ! lol
When I install and run my script as you suggested I get the following message:
$ ./process_inerl01 .pl
Can't locate auto/Text/CSV/autosplit.ix in @INC (@INC contains: /usr/opt/perl5/
ib/5.8.0/aix-thread-multi /usr/opt/perl5/lib/5.8.0 /usr/opt/perl5/lib/site_perl
5.8.0/aix-thread-multi /usr/opt/perl5/lib/site_perl/5.8.0...Leave a comment:
-
Hi Miller,
Thanks for that - I did not realise that the modules could be used in such a way.
Does that appy for any of the generally available perl modules - specifically DBI ?
Many thanks
KeithLeave a comment:
-
CSV file manipulation
OK... the important bit here is that I am not able to compile in an external module right now.. long story but I can't !
I have a csv file, comma delimited. Problem is that some fields which are provided as quote delimited also have commas in.
I want to parse the data line to remove commas that fall between quotes, before then splitting the line as per normal.
Could anyone give me or point me in the direction...
No activity results to display
Show More
Leave a comment: