Re: Simple Structure Question
- From: Jim Gibson <jgibson@xxxxxxxxxxxxxxxxx>
- Date: Wed, 29 Jun 2005 10:26:05 -0700
<newsAT-E9DBC9.09480929062005@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>, one man
army <newsAT@xxxxxxxxxxxxxxxxxx> wrote:
> ok, after stumbling badly on the syntax and usage, as well as time and
> patience, I have written the first script..
> thanks for (most of) the replies, sometimes it is useful to have more
> sets of eyeballs.
> I really don't think some of the posters remember their first Hundred
> Hours of Perl programming, it was so long ago, and past by some many
> There are a few idioms I am working on, but basically, I have a script
> that parses, finds links, get()s and so on for three nested dereferences
> in about 900 DB generated links. It kinda clunks along, and works!!
Sounds like a non-trivial task!
> I am going to rewrite it in a cleaner fashion.
Putting the above line in your message makes the following look (to my
news reader at least) a signature.
> Lessons Learned:
> Perl programmers use Dump() to determine struct and hash contents -
> program off of what is in front of you
Please keep in mind that "struct" is not a Perl term. Perl does not
have "structs". There is a struct emulator (Class::Struct) that is part
of the core Perl distribution, but I have never used it in many years
of Perl programming and haven't heard it discussed here much. Think of
it as training wheels for C programmers trying to use Perl. You are
better off losing the training wheels and defining your own data
structures using primitive Perl idioms.
> References, like C pointers, come up a lot and matter
> print() is your friend
> the documentation is deficient in many places. Most notably
> perldoc -q struct
But that documentation refers you to perlref, perlreftut, perldsc, and
perllol. Is there something wrong with those references?
> There is a lot of terse idiom everywhere you look
> Perl has a lot of modules on CPAN to do very useful stuff
> all for now
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---
- Prev by Date: Re: Simple Structure Question
- Next by Date: Re: extract a value from a field in a file
- Previous by thread: Re: Simple Structure Question
- Next by thread: Re: Simple Structure Question