That code will only print the file's paths relative to /scratch - in order to get the fully qualified path, I'd need to prepend the value of $dir.#!/usr/bin/perl -w use strict; my $dir = "/scratch"; opendir(DIR, $dir) or die "Unable to opendir $dir: $!\n"; foreach my $file (readdir DIR) { print "file is at: $file\n"; } closedir(DIR);
In reply to Re: Re: Re: load_file and mysql
by davis
in thread load_file and mysql
by mce
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |