| Subject: | RE: To Run System Command |
|---|---|
| From: | "Gardner, Sam" |
| Date: | Fri, 4 Mar 2005 09:35:16 -0500 |
|
You may (depending on your needs) even like: my $my_dir = 'home/your_dir'; system('cd $your_dir'); ##Note that backticks capture output -- using the
## now, you have your files in an array ##Note that you could also use the perl-native (below)
@files = glob('*.txt');
Sam Gardner GTO Application Development Keefe, Bruyette & Woods, Inc. 212-887-6753 -----Original Message-----
Hi, Try this way, my $my_dir = 'home/your_dir'; `cd $your_dir`;
Regards C.M Satish.Waghmare@xxxxxxxxxxxxx
Hi :
it has created.
_______________________________________________
_______________________________________________ ActivePerl mailing list ActivePerl@xxxxxxxxxxxxxxxxxxxxxxxx To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: accessing MySQL via Perl, Chad I. Uretsky |
|---|---|
| Next by Date: | Re: accessing MySQL via Perl, Randy Kobes |
| Previous by Thread: | Re: To Run System Command, Murugavel Chidambaram |
| Next by Thread: | Re: To Run System Command, Lloyd Sartor |
| Indexes: | [Date] [Thread] [Top] [All Lists] |