Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Create a excel sheet with formula ???

by monarch (Priest)
on Nov 08, 2006 at 08:28 UTC ( #582821=note: print w/replies, xml ) Need Help??


in reply to Re^2: Create a excel sheet with formula ???
in thread Create a excel sheet with formula ???

I tried out your code, and it creates a nice spreadsheet. Thank you for providing your working code!

I'm not sure I understand your question. However.. If I was to write a function that takes your three values it would be thus:

sub Entry( $ $ $ $ ) { my ( $row, $slno, $testid, $status ) = @_; $worksheet->write( "A$row", $slno ); $worksheet->write( "B$row", $testid ); $worksheet->write( "C$row", $status ); }
and call it thus
# skip header row on Excel Spreadsheet my @entries = ( [ "1", "00A", "pass" ], [ "2", "01A", "fail" ], [ "3", "01B", "fail" ], [ "4", "02A", "pass" ], ); for (my $i = 0; $i < @entries; $i++) { my ( $slno, $testid, $status ) = @{$entries[$i]}; Entries( $i+2, $slno, $testid, $status ); }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://582821]
help
Chatterbox?
[Lady_Aleena]: Corion, I knew that, I was just giving Discipulus a hard time.
choroba likes the story at the end of the node
[choroba]: reminds me of the days at the bank
[Corion]: Lady_Aleena: Hehe ;-D
[Lady_Aleena]: Corion, it was PerlMonks who kept pushing me to get Linux, so now I know some of the commands to use in word play.
[Corion]: Lady_Aleena: :-D
[Lady_Aleena]: Corion, so do you think the gods would be open to taking over Cookies should I disappear for too long a time?

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2017-04-26 08:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (471 votes). Check out past polls.