Author Topic: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY  (Read 3172 times)

0 Members and 1 Guest are viewing this topic.

T234

  • Canadian Legal Expert and Hillballer
  • Senior Member
if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« on: March 27, 2008, 04:45:54 PM »
WHYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
UK

Van Cruncheon

  • live mas or die trying
  • Banned
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #1 on: March 27, 2008, 04:49:39 PM »
if /your.+?ass/ $mycock++;
$_ = $mycock;
duc

T234

  • Canadian Legal Expert and Hillballer
  • Senior Member
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #2 on: March 27, 2008, 04:51:57 PM »
use Date::Manip;
use Roman;

print "input a date \n";
$inputDate = <>;


$curDate = `date '+%m/%d/%y%n'`;
$Date = ParseDate($inputDate);
$DateNow = ParseDate($curDate);

if ($Date > $DateNow)
{
print "you're from the future";
exit;
}

if (! $Date)
{
print "error";
exit;
}
print "$Date";
print "\n";

print "$curDate";

print "\n";

$delta = DateCalc($Date,$DateNow, 1, 1);

print "$delta";
print "\n";
$delta = substr($delta, 1);

$curDate = `date '+%m/%d/%y%n'`;
$Date = ParseDate($inputDate);
$DateNow = ParseDate($curDate);

if ($Date > $DateNow)
{
print "you're from the future";
exit;
}

if (! $Date)
{
print "error";
exit;
}
print "$Date";
print "\n";

print "$curDate";

print "\n";

$delta = DateCalc($Date,$DateNow, 1, 1);

print "$delta";
print "\n";
$delta = substr($delta, 1);
@deltaA = split(/:/, $delta);

print "@deltaA \n";
print "$deltaA[0]"

if($deltaA[0] != "0");   <-----------------------------------------Always returns true.
{
print "test \n";
#exit;
print "@deltaA \n";
print "$deltaA[0]"
}
exit;


« Last Edit: March 27, 2008, 04:54:20 PM by T234 »
UK

demi

  • cooler than willco
  • Administrator
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #3 on: March 27, 2008, 04:52:02 PM »
you are reaching himuro levels of shit threads
fat

drew

  • sy
  • Senior Member
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #4 on: March 27, 2008, 04:55:27 PM »
What the fuck is this shit.

T234

  • Canadian Legal Expert and Hillballer
  • Senior Member
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #5 on: March 27, 2008, 05:01:51 PM »
The bane of my current existence is what.

EDIT:

Been working on this shit for 13 hours over the past two days.
« Last Edit: March 27, 2008, 05:08:44 PM by T234 »
UK

HotByCold

  • Junior Member
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #6 on: March 27, 2008, 05:09:27 PM »
Wow, this looks interesting.
Are you one of them science geniuses?

T234

  • Canadian Legal Expert and Hillballer
  • Senior Member
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #7 on: March 27, 2008, 05:09:58 PM »
Fuck no. In fact,  :lol :lol :lol :lol :lol :lol :lol :lol :lol :lol
UK

Van Cruncheon

  • live mas or die trying
  • Banned
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #8 on: March 27, 2008, 05:14:00 PM »
please don't tell me you worked on the above code for 13 hours
duc

Robo

  • Senior Member
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #9 on: March 27, 2008, 05:14:59 PM »
 :rofl
obo

T234

  • Canadian Legal Expert and Hillballer
  • Senior Member
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #10 on: March 27, 2008, 05:15:33 PM »
About 15 minutes under that :(
UK

T234

  • Canadian Legal Expert and Hillballer
  • Senior Member
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #11 on: March 27, 2008, 05:17:21 PM »
I suck at programming :'(
UK

Van Cruncheon

  • live mas or die trying
  • Banned
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #12 on: March 27, 2008, 05:20:45 PM »
i'm sorry :'( but:


SMH
duc

HotByCold

  • Junior Member
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #13 on: March 27, 2008, 05:24:55 PM »
What does "smh" stand for?

Van Cruncheon

  • live mas or die trying
  • Banned
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #14 on: March 27, 2008, 05:26:37 PM »
"synbios makes ha-ha"
duc

Van Cruncheon

  • live mas or die trying
  • Banned
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #15 on: March 27, 2008, 05:27:59 PM »
might be synbios, but i'm not terribly concerned with evilbore mccarthyism
duc

T234

  • Canadian Legal Expert and Hillballer
  • Senior Member
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #16 on: March 27, 2008, 05:30:56 PM »
I have a test in the same class at 5 :( :( :( :(
UK

Tauntaun

  • I'm cute, you should be too.
  • Senior Member
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #17 on: March 27, 2008, 05:59:15 PM »
if /your.+?ass/ $mycock++;
$_ = $mycock;


gay subtext, literally. I lulled
:)

drew

  • sy
  • Senior Member
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #18 on: March 27, 2008, 06:11:29 PM »
Which joke character is this HotByCold?  Have we figured it out?

Definite joke character.  Except not even a fun or interesting one.

Unless you find cold generic responses entertaining.  fuckin zzz

Van Cruncheon

  • live mas or die trying
  • Banned
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #19 on: March 27, 2008, 06:15:15 PM »
according to mupepe.com's phoenixdark, he was someone he invited from gaf on account of his "interesting porn tastes."

yeah, dumb fucking teenagers. really, you should have to be 24 yrs or older to use the internet.
duc

HotByCold

  • Junior Member
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #20 on: March 27, 2008, 06:25:53 PM »
Which joke character is this HotByCold?  Have we figured it out?

Definite joke character.  Except not even a fun or interesting one.

Unless you find cold generic responses entertaining.  fuckin zzz
SMH



Was that the correct way of using this acronym?

HotByCold

  • Junior Member
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #21 on: March 27, 2008, 06:34:41 PM »
smh @ your generic response.  wake me up when Prole shoots his foot off or Willco gets here.
SMH

Van Cruncheon

  • live mas or die trying
  • Banned
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #22 on: March 27, 2008, 06:34:54 PM »
three shots of 1800 down but i dunno if my stomach can handle another
duc

Joe Molotov

  • I'm much more humble than you would understand.
  • Administrator
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #23 on: March 27, 2008, 06:40:33 PM »
according to mupepe.com's phoenixdark, he was someone he invited from gaf on account of his "interesting porn tastes."

yeah, dumb fucking teenagers. really, you should have to be 24 yrs or older to use the internet.

I like to look at attractive women without their clothes on. I'm sorry that's not interesting enough for you guys.  :usacry
©@©™

Van Cruncheon

  • live mas or die trying
  • Banned
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #24 on: March 27, 2008, 06:42:21 PM »
so do i, but it really doesn't merit discussion among adults since sex isn't quite the all-consuming novelty it is to the teenaged and lovelorn
duc

drew

  • sy
  • Senior Member
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #25 on: March 27, 2008, 07:39:14 PM »
Seriously, check his post history.  Everything's  who? what? how?  He's like a baby that was left naked out in the tundra to be raised by wolves and just made his way to a computer for the first time at a public library.

Tauntaun

  • I'm cute, you should be too.
  • Senior Member
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #26 on: March 27, 2008, 08:57:46 PM »
Seriously, check his post history.  Everything's  who? what? how?  He's like a baby that was left naked out in the tundra to be raised by wolves and just made his way to a computer for the first time at a public library.

We should eat him.....her.....it.
:)

recursivelyenumerable

  • you might think that; I couldn't possibly comment
  • Senior Member
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #27 on: March 27, 2008, 11:37:52 PM »
What are you actually getting for $deltaA[0]?  The empty string, maybe?   I don't have Perl on this computer and the documentation for the DateManip module is a bit vague, but my guess is that when the dates are the same the delta string doesn't actually feature a sign, so you're just chopping off the zero itself.
QED

recursivelyenumerable

  • you might think that; I couldn't possibly comment
  • Senior Member
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #28 on: March 28, 2008, 12:14:27 AM »
er wait, there is no semicolon between a conditional and its statement block.  We've been through this.
QED

CajoleJuice

  • kill me
  • Icon
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #29 on: March 28, 2008, 12:42:48 AM »
yeah, dumb fucking teenagers. really, you should have to be 24 yrs or older to use the internet.

:(
AMC

T234

  • Canadian Legal Expert and Hillballer
  • Senior Member
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #30 on: March 28, 2008, 01:59:07 AM »
er wait, there is no semicolon between a conditional and its statement block.  We've been through this.
If I don't I get two syntax errors.
UK

recursivelyenumerable

  • you might think that; I couldn't possibly comment
  • Senior Member
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #31 on: March 28, 2008, 02:04:58 AM »
you're missing a semicolon after the preceding print statement.
QED

T234

  • Canadian Legal Expert and Hillballer
  • Senior Member
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #32 on: March 28, 2008, 02:34:38 AM »
AAHAHFUAFNUNFUNNATUNUTNIUSANFNAN;IUTNUIOA;NIOUTNA;N;IUTN;OAIUNTIUNAUI;NI;UTNAI;NUIU;AN;IUNTIUANINT;IUAN;ANTIUANIUNIUNAIUNUIFNIA;SUNARUNRIUANRIUHNRIUNOIUNO;ANNT;AUNLNA;LMNF;JNUIAIUT
UK

Powerslave

  • Senior Member
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #33 on: March 28, 2008, 02:36:01 AM »

T234

  • Canadian Legal Expert and Hillballer
  • Senior Member
Re: if($deltaA[0] != 0); IS ALWAYS TRUE WHY $DEITY WHY
« Reply #34 on: March 28, 2008, 12:34:25 PM »
please don't tell me you worked on the above code for 13 hours

SMH

This is some grade-A kindergarten programming stuff. Shoulda taken him 20 minutes tops.
:'( I suck  :'(
UK