bschmer has asked for the wisdom of the Perl Monks concerning the following question:
When I run this script with arguments like "this is" "a test", I get#!/bin/sh eval "exec /usr/bin/perl -I`dirname $0` -M`basename $0 .pm` -e main -- + $@ " if $running_under_some_shell; sub main { for my $arg (@ARGV){ print "=>$arg<=\n"; } } 1;
=>this is a test<=when I want to get
=>this is<= =>a test<=I'm looking for any suggestions. I've found ways of making the shell handle things correctly, but Perl doesn't like any of the incantations that I've tried.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Module/script all in one
by TomDLux (Vicar) on Jan 08, 2004 at 23:21 UTC | |
|
•Re: Module/script all in one
by merlyn (Sage) on Jan 08, 2004 at 23:16 UTC | |
|
Re: Module/script all in one
by ysth (Canon) on Jan 09, 2004 at 05:24 UTC | |
|
Re: Module/script all in one
by bschmer (Friar) on Jan 09, 2004 at 12:00 UTC |