develooper Front page | perl.beginners | Postings from December 2002

RE: Constants and Hash Question

Thread Previous | Thread Next
From:
Duarte Cordeiro
Date:
December 11, 2002 06:42
Subject:
RE: Constants and Hash Question
Message ID:
0DA607347A46F649BA80F49ABAE83FE48E1737@ptoermxs01.neoris.cxnetworks.net
$command="cp --preserve --recursive --update ". SOURCE
."/$ini{$section}{path}"......
$copydir = `$command`;


-----Original Message-----
From: Paul Kraus [mailto:pkraus@pelsupply.com] 
Sent: Wednesday, December 11, 2002 2:38 PM
To: 'Kipp, James'; 'Perl'
Subject: RE: Constants and Hash Question


ok but lets say I am doing this....

$copydir = `cp --preserve --recursive --update
SOURCE/$ini{$section}{path} DEST/$ini{$section}{machine}`;

> -----Original Message-----
> From: Kipp, James [mailto:James.Kipp@mbna.com]
> Sent: Wednesday, December 11, 2002 9:29 AM
> To: 'Paul Kraus'; Perl
> Subject: RE: Constants and Hash Question
> 
> 
> print SOURCE;
> 
> > -----Original Message-----
> > From: Paul Kraus [mailto:pkraus@pelsupply.com]
> > 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 => "/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.
> > 
> > > 
> 


-- 
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org


________________________________________________________________________
____
For your protection, this e-mail message has been scanned for viruses.
Visit us at http://www.neoris.com/

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About