On 06/17/2015 10:01 PM, Mike Flannigan wrote:
Thank you. I stand corrected.
Interestingly, if you do "perldoc -q $," it does
not explain $, but instead goes into some system
with >> as the prompt.
you need to escape the $ from the shell. also you can use perldoc -v to
get info on any builtin
Thank you. I stand corrected.
Interestingly, if you do "perldoc -q $," it does
not explain $, but instead goes into some system
with >> as the prompt.
Mike
On 6/17/2015 8:43 AM, Andy Bach wrote:
Actually there is a $, - array display separator.
http://perlmaven.com/output-field-separator
On Wed, 17 Jun 2015 08:29:10 -0500
Mike Flannigan wrote:
> If I am not mistaken there is no $, variable in Perl.
> Correct me if I am wrong.
http://perldoc.perl.org/perlvar.html and search
for /\$OUTPUT_FIELD_SEPARATOR/
--
Don't stop where the ink does.
Shawn
--
To unsubscribe, e-ma
Actually there is a $, - array display separator.
http://perlmaven.com/output-field-separator-and-list-separator
On Wednesday, June 17, 2015, Mike Flannigan wrote:
>
> If I am not mistaken there is no $, variable in Perl.
> Correct me if I am wrong.
>
> I suspect that was supposed to be $/.
>
>
If I am not mistaken there is no $, variable in Perl.
Correct me if I am wrong.
I suspect that was supposed to be $/.
Mike
On 6/17/2015 7:32 AM, beginners-digest-h...@perl.org wrote:
{
local $, = "\n";
print %test;
}
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For add
See this http://stackoverflow.com/questions/6723172/what-is-4-16-in-hashes
On 13-Jun-2015 10:09 pm, "rakesh sharma" wrote:
> Hi
>
> I am printing a hash but I tried to concatenate the new line operator and
> I am getting 2/8 as output;
>
> print %hash."\n"
{
local $, = "\n";
print %test;
}
On Sat, Jun 13, 2015 at 9:37 AM, rakesh sharma
wrote:
> Hi
>
> I am printing a hash but I tried to concatenate the new line operator and
> I am getting 2/8 as output;
>
> print %hash."\n";
>
> output is 2/8. I am
Hi Sumathi,
first of all note this:
http://www.shlomifish.org/philosophy/computers/netiquette/email/start-new-thread.html
On Mon, 15 Jun 2015 13:12:53 +0530
suMathI gOkuL wrote:
> Hi Friends,
>
> Please suggest me some idea to write perl code to join multiple lines into
> single line after a
keys %hash ){
>> print $_ => $hash{$_}. "\n";
>> }
>> On Jun 13, 2015 1:40 PM, "rakesh sharma"
>> wrote:
>>
>>> Hi
>>>
>>> I am printing a hash but I tried to concatenate the new line operator
>&g
;> I am printing a hash but I tried to concatenate the new line operator and
>> I am getting 2/8 as output;
>>
>> print %hash."\n";
>>
>> output is 2/8. I am not able to make the output. 2 could be the items in
>> the hash, which in my case was 2.
>> Any inputs?
>>
>> thanks
>> rakesh
>>
>
You can go over the hash using for loop like
for ( keys %hash ){
print $_ => $hash{$_}. "\n";
}
On Jun 13, 2015 1:40 PM, "rakesh sharma"
wrote:
> Hi
>
> I am printing a hash but I tried to concatenate the new line operator and
> I am getting
Hi
I am printing a hash but I tried to concatenate the new line operator and I am
getting 2/8 as output;
print %hash."\n";
output is 2/8. I am not able to make the output. 2 could be the items in the
hash, which in my case was 2.Any inputs?
thanksrakesh
12 matches
Mail list logo