#Here's something I put together for fun. I thought I'd see if anyone would like to see it and have some fun modifying it. Have fun.
#!/usr/bin/perl # In case of employment emergencies, execute this script. # Written by Greg Meckes use strict; use LWP::UserAgent; use HTTP::Request::Common qw(POST); use EMERGENCY::NewJob::Search; my $ua = new LWP::UserAgent; my $Ask = new EMERGENCY::NewJob::Search; my $Url = 'http://www.monster.com'; my $Request = 1; if (($JobDemands + ($Boss * $PsychosisLevel)) >= $BreakingPoint) { &GetNewJob($Url); if (exists $JOBS{'Dream Job'} && ($JOBS{'Dream Job'} >= $DesiredSa +lary)) { $GoNow = $Ask->interview($Request); } elsif (exists $JOBS{'So So Job'} && ($JOBS{'So So Job'} >= $De +siredSalary)) { $GoNow = $Ask->interview($Request); } else { &KillSelf; } exit; } else { &SeeShrink($BreakingPoint); } sub GetNewJob { my @Result = $Url->content; my $NewResume = '/usr/local/emergency/resume.pdf'; &UploadResume($NewResume); $JobToSearchFor = 'Anything Else Other Than This'; my @Jobs = grep(/$JobToSearchFor/i,@Result); foreach $Job(@Jobs) { &ApplyNow($Job); } } sub SeeShrink { $BreakingPoint = shift; seek(HELP,$Advice,$Counseling); $WhatToDo = ($BreakingPoint - ($Advice + $Counseling)); if ($WhatToDo <= $BreakingPoint) { &KillSelf; } else { &TakeVacation; } } sub ApplyNow { my $Job = shift; $SalResult = ($CurrentSalary <=> $NewJobSalary); if ($SalResult != 1) { last; } else { $JOBS{$Job} = $NewJobSalary; } } sub UploadResume { my $NewResume = shift; my $req = POST $Url, Content_Type => 'form-data', Content => [ file => [$NewResume] ] or die &KillSelf; my $res = $ua->request($req) or die &KillSelf; } sub KillSelf { kill(1, me); } sub TakeVacation { my $Savings = $Ask->withdraw('ALL'); my $Dest = 'ANYWHERE'; my $AirLine = 'ANYTHING'; my $Stay = 'INDEFINITELY'; my $Purchase = $Ask->purchase_trip($Dest,$AirLine,$Stay); }

In reply to An Emergency Employment Script by guysmily

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.