Re: Simple Structure Question



In article
<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..

Congratulations.

>
> 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
> more..
>
> 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 =---
.



Relevant Pages

  • Re: Help me get "Directory" out of full windows path name?
    ... Random Task wrote: ... it seems like you are fairly new to Perl programming. ... I would recommend purchasing ...
    (comp.lang.perl.misc)
  • Re: simple way to manipulate a crap slinging monkey
    ... For you, the reader, Uri serves well as icon of this deeply ... rooted problem with Perl programming and our Perl community. ...
    (perl.beginners)
  • Re: Privilege-escalation attacks on NT-based Windows are unfixable
    ... > The ability to execute untrusted code in a sandbox. ... These are both features which protect users that run untrusted code. ... Oops, no, that's perl with taint checking. ... > In the Perl programming language, there's no buffer overflows, barring ...
    (comp.security.misc)
  • Re: Privilege-escalation attacks on NT-based Windows are unfixable
    ... > The ability to execute untrusted code in a sandbox. ... These are both features which protect users that run untrusted code. ... Oops, no, that's perl with taint checking. ... > In the Perl programming language, there's no buffer overflows, barring ...
    (comp.os.ms-windows.nt.admin.security)
  • Re: Documenting Idioms
    ... > idioms are better documented than ... > lisp idioms. ... And in fact IIRC perl comes with a perl cookbook listing several ... Farewell Romance the Soldier spoke ...
    (comp.lang.lisp)