Re: Constants and Hash Question

2002-12-11 Thread John W. Krahn
Paul Kraus wrote: > > I am declaring my constants like this. > use constant SOURCE => "/path/folder/" > Now how would I use this constant is a print statement or any statement > for that matter. > print "$SOURCE" does not work and of course print "source" will not > work. The constant pragma crea

Re: Constants and Hash Question

2002-12-11 Thread Rob Dixon
b - Original Message - From: "Paul Kraus" <[EMAIL PROTECTED]> To: "'Kipp, James'" <[EMAIL PROTECTED]>; "'Perl'" <[EMAIL PROTECTED]> Sent: Wednesday, December 11, 2002 2:37 PM Subject: RE: Constants and Hash Question > ok b

RE: Constants and Hash Question

2002-12-11 Thread Kipp, James
> > ok but lets say I am doing this > > $copydir = `cp --preserve --recursive --update > SOURCE/$ini{$section}{path} DEST/$ini{$section}{machine}`; > could use concatenation. $copydir = `"cp --preserve --recursive --update" . SOURCE . "/$ini{$section}{path} DEST/$ini{$section}{machine}"`

RE: Constants and Hash Question

2002-12-11 Thread Duarte Cordeiro
$command="cp --preserve --recursive --update ". SOURCE ."/$ini{$section}{path}".. $copydir = `$command`; -Original Message- From: Paul Kraus [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 11, 2002 2:38 PM To: 'Kipp, James'; 'Perl' Subje

Re: Constants and Hash Question

2002-12-11 Thread Rob Dixon
- Original Message - From: "Paul Kraus" <[EMAIL PROTECTED]> To: "Perl" <[EMAIL PROTECTED]> Sent: Wednesday, December 11, 2002 2:16 PM Subject: Constants and Hash Question > I am declaring my constants like this. > use constant SOURCE => &

RE: Constants and Hash Question

2002-12-11 Thread Paul Kraus
Paul Kraus'; Perl > Subject: RE: Constants and Hash Question > > > print SOURCE; > > > -Original Message- > > From: Paul Kraus [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, December 11, 2002 9:17 AM > > To: Perl > > Subject: Constants an

RE: Constants and Hash Question

2002-12-11 Thread Kipp, James
print SOURCE; > -Original Message- > From: Paul Kraus [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, December 11, 2002 9:17 AM > To: Perl > Subject: Constants and Hash Question > > > I am declaring my constants like this. > use constant SOURCE => "/

Constants and Hash Question

2002-12-11 Thread Paul Kraus
I am declaring my constants like this. use constant SOURCE => "/path/folder/" Now how would I use this constant is a print statement or any statement for that matter. print "$SOURCE" does not work and of course print "source" will not work. I understand that this works but I do not understand wha