Hi gurus -
OK This works -
sample - $sheet1->write(8, 0, '=IF(A5>3,"Yes", "No")');
What I need is this -
$sheet1->write("$i", 3, '=(100/C$i) )*B$i/100', $format1);
$i is the row count - I am strugging with the '100/C$i' section -
I need to get the value of the 2nd/3rd $i's - I have...
No worries Paul - it's a doddle -
go to o2.co.uk
create a user name (and password)
Use the above the in the code sample above -
You get 30 free - then you gotta pay - but you can do it via your phone (£1.50 per 30) not too bad .....
Still working on the variable prob ....
chers
Hi gurus -
I have set up a script to send me SMS Alerts on completion of variouys tasks - it all works fine except when I include variable - eg '$recs were imported'
Here is a code snippet -
my $sms = Net::SMS::O2->new(
autotruncate => 1,
username => 'myname'...
This script runs fine on my machine (Win2k Adv Server,Activestate 5.6 etc)
It may be a problem with the IIS set-up -
If I look at my file-types and edit the .pl entry and go to advanced I have this
"C:\perl\bin\perl.exe" "%1" %*
I also have this setting locally - hope this helps !
Rab
Hi gurus -
What is the best way to put a unique index on a column that already has duplicate data in ?
Should I remove the dupes first ? then add the index or is there a better way ....
Maybe dump the table ,remove dupes with DISTINCT and re-import ?
cheers
Rab
Cheers Paul -
I have just familiarised myself a bit more with Text::CSV -
you are right I think I am sorted -
re the quotes - I am stripping this out first anyway ....
cheers mate
Rab
Hi gurus -
OK I have data coming in,in this format
"forename","surname","address_1","address_2","address_3" etc
I have been splitting on the commas - no problem
Except there are now addresses that have extar commas in the first field - eg "54,test street","address_2", etc
I have got...
Hi gurus -
just need a nudge in the right direction -
How do I deal with joins with dbi eg
SELECT t1.name,t2.address FROM t1,t2
WHERE t1.name = t2.name
When I assign like this
my $name = "$ref->{'name'}";
I get an empty string back ....
The sql...
Cheers - I am trying to set Interchange up on my linux box (RH9) - If I run it I get a message saying it will not run with a thread-enabled perl -
is there a way to 'unthread' an already installed version ?
Or do I need another version ?
cheers
OK gurus - I need to read in a previously generated spreadsheet - and then add new data from a db -
I have this so far -
for(my $iSheet=0; $iSheet < $oBook->{SheetCount} ; $iSheet++) {
$oWkS = $oBook->{Worksheet}[$iSheet];
for(my $iR = $oWkS->{MinRow} ; defined...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.