The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Another Perl Challenge, and I need help. by caffine-iv 2003-01-19 13:18:18
I'm supposed to write a program that creats functions as it's run. Quote from email:
Write a loop that "creates" 6 functions. Each
function prints out a string embedded between
the opening and closing tags of a level-specific
html header. 

It's not to print any thing. It is just to create
that code, is if you had written it yourself or
if it had been imported from another namespace.
Now I remember vaguely that eval could be used to do this, as well as anonymous subroutines.. but I've forgotten how and my book with examples has been lent out =(
[ Reply ]
  Should this prg create an other programme ... by anymouse2003-01-19 13:54:18
    What it shoudl be doing, by caffine-iv2003-01-19 13:55:10
      try this by dfx2003-01-19 14:37:12
        or by dfx2003-01-19 14:39:12
          Thanks :) (n/t) by caffine-iv2003-01-19 14:52:32

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)