Log in



Tags » ‘File’

I am trying to understand how Perl gets info from an Excel file and passes it to Flash?

October 11th, 2010 by

Question by jayztttight: I am trying to understand how Perl gets info from an Excel file and passes it to Flash?
I am looking at an old site, and I cannot figure how it uses Perl to grab information from Excel Spreadsheets, and then puts all that information into Flash. I was given this old site to update but I have no idea where to start.

Best answer:

Answer by covinher
Perl can trivially pluck information from an excel file (or any other flat-file/database). According to search engine, perl has several different projects that provide bindings for flash libraries, allowing you to create flash output from your perl script.

http://www.libming.net/docs/perl/index.html

http://www.the-labs.com/PerlFlash/

Add your own answer in the comments!

How do you search a file in Perl?

October 1st, 2010 by

Question by J needs Help: How do you search a file in Perl?
I need to search a text file for a specific word.

Best answer:

Answer by Bradley
open(FILEHANDLE, filename); #Opens file
my $lineNum = 1;
for(){ #Accesses each line of the file
if(/word/){ #Checks for word in the given line
#Code for line with found word.
}
$lineNum++; #To keep track of the line numbers… if desired
}

What do you think? Answer below!


Powered by Yahoo! Answers