#!/usr/bin/perl use strict; + + my @list = q('Ashok Hello'); + print "val: $_\n" foreach @list; @list = qw('Ashok Hello'); print "val: $_\n" foreach @list;
why the Space is not Interpolted in the first foreach loop. can you please explain me how the internal goes here.Output is as follows :- val: 'Ashok Hello' val: 'Ashok val: Hello'
In reply to Curious to know the internals of the following code by jesuashok
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |