#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); }

Replies are listed 'Best First'.
Re: An Emergency Employment Script
by sparkyichi (Deacon) on Jan 11, 2002 at 03:29 UTC
    I wish I had the EMERGENCY::NewJob::Search module so I could run this I could realy use it! :)
    Sparky
Re: An Emergency Employment Script
by dmmiller2k (Chaplain) on Jan 11, 2002 at 03:51 UTC

    Bravo! Trés Cute.

    dmm

    You can give a man a fish and feed him for a day ...
    Or, you can
    teach him to fish and feed him for a lifetime
      I think they need an

      EMERGENCY::NewJob::RewriteResume::Quick

      Module, To go along with that, it would be usefull too.

      :)

      -- Yes, I am a criminal. My crime is that of curiosity.
Re: An Emergency Employment Script
by And Begin (Initiate) on Jan 11, 2002 at 19:10 UTC
    I lived it.