Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
i have been trying to do a very basic thing, am not sure whether it can be done or not.
i want to assign '' into a variable so that when the variable is interpolated into a string, it is replaced by '' and not empty nothing.
$a = # what should i do? ; print $a; # should print: ''
and not nothing.
thanks.
20040610 Edit by Corion: Added formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to assign empty single quotes into a string
by muntfish (Chaplain) on Jun 10, 2004 at 09:55 UTC | |
by ambrus (Abbot) on Jun 10, 2004 at 20:56 UTC | |
|
Re: how to assign empty single quotes into a string
by Zaxo (Archbishop) on Jun 10, 2004 at 09:55 UTC | |
by bart (Canon) on Jun 10, 2004 at 14:01 UTC | |
by BrowserUk (Patriarch) on Jun 10, 2004 at 14:15 UTC | |
|
Re: how to assign empty single quotes into a string
by mawe (Hermit) on Jun 10, 2004 at 09:56 UTC |