linked list's

2002-12-08 Thread Mark Goland
hi all, I am having problems printing this doubly list. the bug statment prints the expacted so I think I have the list setup right, but I cant get this list to print in reverse... any ideas ?? Thanx in Advance #!/usr/bin/perl -w $debug=1; for($i=1;$i<10;$i++){ $list = {value=>$i,prev=>$

Re: linked list's

2002-12-08 Thread Mystik Gotan
For one, I would use the -d flag to use debugging options and set $^D to whatever you want. -- Bob Erinkveld (Webmaster Insane Hosts) www.insane-hosts.net MSN: [EMAIL PROTECTED] From: Mark Goland <[EMAIL PROTECTED]> To: perl <[EMAIL PROTECTED]> Subject: linked list

Re: linked list's

2002-12-09 Thread Jason Tiller
Hi, Mark, :) On Sun, 8 Dec 2002, Mark Goland wrote: > I am having problems printing this doubly list. the bug statment > prints the expacted so I think I have the list setup right, but I > cant get this list to print in reverse... any ideas ?? > #!/usr/bin/perl -w # Always do this. use strict;

Re: linked list's

2002-12-09 Thread Mark Goland
cember 09, 2002 3:16 PM Subject: Re: linked list's > Hi, Mark, :) > > On Sun, 8 Dec 2002, Mark Goland wrote: > > > I am having problems printing this doubly list. the bug statment > > prints the expacted so I think I have the list setup right, but I > > cant get

Re: linked list's

2002-12-09 Thread simran
is regarding > this. > > >$head ||= $link; > > What is this line doing ?? > > Mark > - Original Message - > From: "Jason Tiller" <[EMAIL PROTECTED]> > To: "perl" <[EMAIL PROTECTED]> > Sent: Monday, December 09, 2002 3:1

Re: linked list's

2002-12-10 Thread Jason Tiller
Yo, Mark, On Mon, 9 Dec 2002, Mark Goland wrote: > Ok I got it working now, thanx much Jason. Only question I have is > regarding this. Good! Glad I could help. > $head ||= $link; This is a Perl idiom to set a variable if it hasn't already been set. So, if $head == undef, then $head will