#perl - Fri 20 Apr 2007 between 01:23 and 01:30



tybalt89(and are global, sometimes a bad thing)
Hmmhesaysso my $tty_id = open($tty, "/dev/ttyS0")
tybalt89no !!!!!!!!!!!!!!!!!!
Hmmhesaysruh roh, i'm really new at this so guide me oh master
f00li5h"you can't just make shit up and hope the computer understands"
tybalt89open(my $tty,"+</dev/ttyS0") or die "can't open file\n";
Hmmhesaysso you are declaring your variable within the open function
tybalt89sure :)
Hmmhesayswould that be the same is declaring my $tty; open($tty,"+</dev/ttyS0") or die "can't open file\n";
tybalt89yes
yubimusubiyes
Hmmhesaysok, I understand
f00li5hnearly
Hmmhesaysnearly?
f00li5hif you declare $tty, outside the open, you can use it in the C< or ... > part too
</pedant>
i'm so very glad i'm the one that marked up the HTML for this dude
tybalt89doesn't help sice it's undefined in the or part
since
f00li5htybalt89: yes, but if you declare it in the open, it's undeclared
tybalt89f00li5h: what?
f00li5hthe distinction is more for open $my fh, '<', my $filename = "foo" or die "Can't open $filename: $!";
aaw, no filename yet -_-
tybalt89f00li5h: well, we were talking about $fh, not the filename
oferhow can I tell what's the difference between timestamps ?
f00li5htybalt89: yes, i see that, but $fh obeys the same scoping rules as $filename
oferfor example, 2005-07-01 vs 2008-02-29
tybalt89define "timestamp"
cfeddewhat are you opening if it;s not defined.
ArmOrAttAksubtraction
f00li5hofer: you can compare them with gt ge etc
oferI want to know that the diff is 2 years, 5 months, ...
f00li5hofer: because those time stamps will copare nicely
cfeddeofer: use one of the fancy DateTime:: oarser modules
parser
tybalt89f00li5h: sure, but $fh has no use in the or part
f00li5htybalt89: this is true
actionQtPlatypus often cheats and gets MySQL to do thouse types of things.
QtPlatypusoften cheats and gets MySQL to do thouse types of things.
f00li5htybalt89: but the answer is still "nearly" and not "yes"
tybalt89no it's not

Page: 5 12 19 26 33 40 47 54 61 68 75 82 

IrcArchive