Robin Bowes skribis 2005-11-24 11:50 (+0000):
> $ perl -e 'printf "%s\0%s\0Y123456\0","[EMAIL PROTECTED]","password"'
> robin.compasswordY123456
> i.e. the @ sign causes something funny to happen and truncate the email
> address. Note that the full email address is required for vpopmail.
Taking into account that it's perl you're using, there's nothing funny
going on.
@robinbowes is interpreted as an array, and interpolated as such. The
array doesn't exist, so it is expanded to an empty string.
The solution is to escape the @:
perl -e'..., "[EMAIL PROTECTED]", ...'
or to use single quotes:
perl -e'..., [EMAIL PROTECTED], ...'
# q[] is an alternative single quote, used because '' would break
# the shell quoting
The warning mechanism (-w) would have warned you:
Possible unintended interpolation of @robinbowes in string at -e line 1.
Name "main::robinbowes" used only once: possible typo at -e line 1.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html