Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Ok, this is no great and powerful obfu that will stump users for ages to come, it's more of a funny obfu taking advantage of the plethora of Finite Automata questions floating through the PM... So, I thought, why not get rid of the middle man. No longer do you have to wait for Clueless Newbies(tm) or Oxford Cream to come along and post a question of finite automatae, you can have hours of fun generating your own!
#!/usr/bin/perl -w use strict; # For those of you who just can't get enough Finite Automata # questions! ;-) $_=q~my@a=(['Hello','Greeti ngs','Hi','', 'What\'s_up','Honored_Monks ','Ummm'],["\n "],['my_teacher_assigned_us _a','I_was_wond ering,_if_I_wanted_to,_how_ would_I_write_a' ,'I_have_no_clue_when_to_st art,_I_need_to_w rite_a','URGENT!_URGENT!!_U RGENT!!!_I_neeeee d_help_with_this._Can_someo ne_tell_me_how_to_ write_or_gi ve_me_some_code_to_ perform_ope rations_of'],['_fini te_automata ._'],['The_requireme nts_can_be_ found_at_this_URL:_ht tp://www.my skool.edu/ class/home work/finite_automata/do_i t_yourself /assignment 1.htm.','It_must_be_able_ to_process_ up_to___RAN D___states_over_the_alpha bet_includ ing_1,3_and _7._Run_these_test_string s_against_i t..._1337_3 1337_133t_and_suX#r.','It _need_to_do _something_ with_states_and_an_alphab et,_but_I\ 'm_not_good _with_geography_so_really _need_help! ','','The_c ode_I_have_ started_looks_like_this:_#inc lude_<stdio .h>__void_main()_{_printf("Hel lo_World\n" );_}..._if_anyone_can_tell_me_ where_to_go _from_here_I_would_greatly_appr eciate_it.' ],["\n________________"],['Thank _You','Oh,_ and_I_need_this_by_Friday','Pleas e_please_PL EEEZ!','','Thank_you_for_this_wond erful_site! ','I_send_you_this_file_in_order_t o_have_your _advice','c lueless_newb ie','pearl_ user'],["\n" ]);for(@a){m y@b=@$_;$_= $b[rand@b];s /__RAND__/in t(rand(30)) /ge;s/_/chr( 32)/eg;print ;}~;s/\s//g ;eval$_;#### by Suaveant!!

Update semicolon after use strict

                - Ant
                - Some of my best work - Fish Dinner


In reply to Finite Automata Question Generator by suaveant

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2021-06-15 19:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (73 votes). Check out past polls.

    Notices?