Paul

You can use SOURCE etc. roughly anywhere you could use the corresponding
quoted string.

    $source = SOURCE."/$ini{$section}{path}";
    $dest = DEST."/$ini{$section}{machine}";
    $copydir = `cp --preserve --recursive --update $source $dest';

Cheers,

Rob

----- 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 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:[EMAIL PROTECTED]]
> > 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:[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 => "/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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to