Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi i am trying to run perl one liner from command prompt , i am able to get the output when i use single but not with double quotes, so please help me where i am doing wrong with double quotes
I have a file nosum_website.sh in the current diretory and when i execute below command
$ perl -e '($hi)=glob("nosum*"); print "$hi"'; nosum_website.sh$
but with double quotes i am not getting output
$ perl -e "($hi)=glob(\"nosum*\"); print \"$hi\""; $
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: double quotes and single qoutes
by CountZero (Bishop) on Mar 14, 2013 at 06:58 UTC | |
by Anonymous Monk on Mar 14, 2013 at 07:04 UTC | |
by CountZero (Bishop) on Mar 14, 2013 at 07:16 UTC | |
|
Re: double quotes and single qoutes
by soonix (Chancellor) on Mar 14, 2013 at 08:16 UTC | |
by McA (Priest) on Mar 14, 2013 at 09:42 UTC | |
|
Re: double quotes and single qoutes (shell interpolation)
by Anonymous Monk on Mar 14, 2013 at 07:52 UTC | |
by Anonymous Monk on Mar 14, 2013 at 08:37 UTC | |
by tobyink (Canon) on Mar 14, 2013 at 09:30 UTC | |
by Anonymous Monk on Mar 14, 2013 at 09:41 UTC |