MVRS has asked for the wisdom of the Perl Monks concerning the following question:
How can i pass command line argument with filenames containing spaces in perl, here am sending a sample code which i want to process two different files with names spaces in them
#!/usr/bin/perl use strict; use warnings; my $re; my $qu; $re = $ARGV[0]; $qu = $ARGV[1]; print $re,"\t",$qu,"\n";
for example this is the input file-1(LG 19158.f)and File2 (LG 20546.f
)Thanks in advance ,please suggest me in fixing this
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to pass command line arguments with file names containing spaces
by hdb (Monsignor) on Oct 09, 2013 at 06:02 UTC | |
|
Re: How to pass command line arguments with file names containing spaces
by marinersk (Priest) on Oct 09, 2013 at 08:15 UTC | |
by MVRS (Acolyte) on Oct 09, 2013 at 09:07 UTC | |
by Corion (Patriarch) on Oct 09, 2013 at 09:12 UTC | |
by MVRS (Acolyte) on Oct 09, 2013 at 09:30 UTC | |
by Corion (Patriarch) on Oct 09, 2013 at 09:36 UTC | |
by hdb (Monsignor) on Oct 09, 2013 at 09:25 UTC |