At 07:50 PM 7/8/02 -0700, charlie strauss wrote: >I'm an expert perl programmer who is totally baffled by this very >simple problem that seem like >there must be an obvious solution that I dont know about. can any one help me
Unfortunately your problem is nothing to do with Perl. It's never good enough to know only one thing :-) >as you know, when a perl command runs the arguments on the command >line are split >on whitespace and placed in @ARGV > >What I want instead is to know the exact input command line, before it >is split on white space. > >You might think, "well just join the @ARGV array and voila!: >but this is not exactly the same thing. the main differtence is that >perl removes any surrounding >quotation marks of the split arguments. I want to capture the exact >command line with quotes. You can't do this. The shell does the whitespace splitting and dequoting before the program sees the arguments. It makes no difference what language the program is written in. Your only hope is to use some kind of lobotomized shell that doesn't do any of that. I don't know of one, but in any case I doubt that you're in a position to dictate the shell. Better find another approach. -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
