flieckster has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use File::Find; use File::Copy; use Net::SMTP; use File::Basename; use File::Slurp; use Net::FTP; use Email::Send::SMTP::Gmail; use String::Util ':all'; use LWP::Simple; use Cwd; chomp($myname = `id -un`); my $dir ="/Users/$myname/Desktop/"; my $logname = 'content.csv'; my $output = "> /Users/$myname/Desktop/$logname"; use POSIX qw(strftime); my $date = strftime("%m-%d-%y",localtime); my $time = strftime("%I:%M:%S",localtime); my $comma = ","; my $folder ="/Volumes/photorepos/Partners/NYCompany/post/instock/RUSH/ +"; chdir ($folder); (@files) = glob "*.psd"; foreach $file (@files){ print "$file".','; push @list,("$file".','); crunch(@list); }; my $baseurl ="http://trueaction.workhorsegroup.us/ServerExport.cfm?Con +figFile=ServerExportCfg-NYandCFileStatus.inc&FormatOverride=CSV&filen +ames="; open FILE, $output or warn "$!"; $content = ("$baseurl@list"); # print FILE "$content"; close FILE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: trailing white spaces when pushing into array
by BillKSmith (Monsignor) on Aug 23, 2018 at 19:26 UTC | |
by ikegami (Patriarch) on Aug 23, 2018 at 20:36 UTC | |
by BillKSmith (Monsignor) on Aug 23, 2018 at 20:58 UTC | |
by flieckster (Scribe) on Aug 23, 2018 at 20:06 UTC | |
|
Re: trailing white spaces when pushing into array
by soonix (Chancellor) on Aug 23, 2018 at 19:26 UTC | |
by flieckster (Scribe) on Aug 23, 2018 at 20:01 UTC |