User Profile

Collapse

Profile Sidebar

Collapse
keithl
keithl
Last Activity: Jun 20 '07, 09:43 AM
Joined: May 14 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • keithl
    replied to hash / array / hash
    in Perl
    Thanks Milller...

    That moved me on past the step I was screaming at !!

    Keith
    See more | Go to post

    Leave a comment:


  • keithl
    started a topic hash / array / hash
    in Perl

    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...
    See more | Go to post
    Last edited by miller; Jun 19 '07, 04:16 PM. Reason: Code Tag and ReFormatting

  • keithl
    replied to Understanding a hashref
    in Perl
    Thanks Kevin,

    That looks like exactly the kind of guide I've been searching for all day !!

    Keith
    See more | Go to post

    Leave a comment:


  • keithl
    started a topic Understanding a hashref
    in Perl

    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',...
    See more | Go to post
    Last edited by miller; Jun 18 '07, 03:58 PM. Reason: Code Tag and ReFormatting

  • keithl
    replied to make program file a few bytes larger
    in C
    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.

    Keith
    See more | Go to post

    Leave a comment:


  • keithl
    replied to CSV file manipulation
    in Perl
    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...
    See more | Go to post

    Leave a comment:


  • keithl
    replied to CSV file manipulation
    in Perl
    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

    Keith
    See more | Go to post

    Leave a comment:


  • keithl
    started a topic CSV file manipulation
    in Perl

    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...
    See more | Go to post
No activity results to display
Show More
Working...