Tuna has asked for the wisdom of the Perl Monks concerning the following question:
ormy $date = `date +%Y%m%d`;
ormy $date = system "date +%Y%m%d";
Each of the above returns yyyymmdd\n. Am I going about this the wrong way. Right now, the only way I am correctly populating $date is by passing yyyymmdd as a command line argument.my $date = qx (date +%Y%m%d);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: System call problem
by lhoward (Vicar) on Mar 08, 2001 at 20:28 UTC | |
by Gloom (Monk) on Mar 08, 2001 at 20:40 UTC | |
|
Re: System call problem
by arturo (Vicar) on Mar 08, 2001 at 20:34 UTC | |
|
Re: System call problem
by arhuman (Vicar) on Mar 08, 2001 at 20:20 UTC | |
|
Re: System call problem
by Gloom (Monk) on Mar 08, 2001 at 20:23 UTC | |
|
Re: System call problem
by andye (Curate) on Mar 08, 2001 at 20:20 UTC | |
|
Re: System call problem
by Jouke (Curate) on Mar 08, 2001 at 20:21 UTC | |
|
Re: System call problem
by Tuna (Friar) on Mar 08, 2001 at 20:29 UTC |