Hi gurus
I am trying to understand some advanced (for me) perl constructions (syntax) following this tutorial I am trying to parse html: Using Mojo:OM | Joel Berger [blogs.perl.org]
What does this syntax mean, what is going on here ?
- What kind of loop is this, classic for construction looks like this: for(i=0;i<10;i++){ code } not: {code} for (some_condition)
- What does "each" keyword mean in this context ? Does it have somethin common with "each" build in perl function each - perldoc.perl.org or it is specific to Mojo:OM ?
IMHO on Mojo:OM homepage I did not found any mention about "each" under methods section Mojo:OM - search.cpan.org
so it must be a build in function of perl, but this buildin "each" function has completelly different syntax, how is this possible, am I missing somethin ?
- Can be those pieces of "Perlish" code rewriten in more "C specific" maner so I can understand it?
- Most important: How to list all methods their parameters and return values contained in Mojo:OM ?
it must be done somehow, because I read that even for perl there are IDE with intelisense (autcompletition) so this IDE must know the methods return value types etc.
Not a PERL guy yet, but I suppose that if a method returns a collection of one then each will pull that item from the collection, even though each is usually used with many item collections. Searching a collection with a regex might return more that one item, so returning a collection generalizes the search, returning a subset in a container.
Hi gurus, i am trying to write simple perl script using win32 ole which will iterate over all M$ word paragraphs (any text that ends with a hard return) and print only those paragraphs that matches the specified condition. The problem is that I need to access font size property. It seems to me that... (0 Replies)
Hello Gurus,
I am begginer in perl. I would like to ask several questions, some related to perl and its syntax but most will be regarding to WIN32 OLE. My main goal is to develop script that will check word document structure (return some information) and make some changes in this document (if it... (0 Replies)
Hi there, I'm quite new to the forum and shell scripting.
I want to filter out the "166.0 points". The results, that i found in google / the forum search didn't helped me :(
<a href="/user/test" class="headitem menu" style="color:rgb(83,186,224);">test</a><a href="/points" class="headitem... (1 Reply)
I am trying to insert a picture into a worksheet in Excel using Perl the following is the code
use Win32::OLE;
use Win32::OLE::Const "Microsoft Excel";
use Win32::OLE qw(in with);
# Initiate Excel application
$Excel = Win32::OLE->new('Excel.Application', 'Quit');
$Excel->{Visible} =1;
#... (1 Reply)
Hello All,
I have executed one script where i am getting this error,what may be the reason.....
please help me out.
OLE exception from Microsoft Excel
Win32::OLE(0.1403) error 0x800a03ec
in METHOD/PROPERTYGET "open" (1 Reply)
hi all,
I had raised the same question a few weeks back but forgot to mention a lot of points ... so i am raising a new thread furnishing my requirement ... sorry for that ....
here is my problem.
i have a html that look like below
<tr class="modifications-oddrow">
<td... (2 Replies)
Hi,
I am trying automate couting number of spell and typo errors in MS Word document using perl script.
In perl script, i am using Win32::OLE module of perl to read MS word document.
Can anybody tell me are there any modules available in perl which can be imported into my script to... (0 Replies)
Dear all,
I have to parse a large amount of html files, which I would like to transform into comma separated values. The html-files have the following structure:
<tag1> CATEGORY_1 <tag2><tag3> HEADER_1 <tag4>
<tag5> paragraph_1 <tag6>
<tag5> paragraph_2 <tag6>
<tag3>HEADER_2... (2 Replies)
i have a HTML report file..its in attachment(a part of the whole report is attached..name "input html.doc").also its source is attached in "report source code.txt"
i just want to seperate the datas like in first line it should be..
NHTEST-3848498958-NHTEST-10.2-no-baloo a
and so on for whole... (3 Replies)