On Thu, July 10, 2008 11:55 am, Anirban Adhikary wrote: > Hi > Can u please tell me where i need to use ' instead of " and what will > be the > syntax of that string. Because when I am using perl -MDBI -e "print > $DBI::VERSION;" on my linux system I am not getting any output but the > second option is working fine.
When you put a string between ''s , no kind of shell variable expansion is done. The string is passed exactly as it is. Where as text inside "" are subject to different kinds of expansions/replacements, etc.. So for your particular case.. I guess you need perl -MDBI -e 'print $DBI::VERSION;' becasue if you write perl -MDBI -e "print $DBI::VERSION;" it will interpret $DBI as a shell variable. If I am not wrong, $DBI is empty in your shell. And thus your command becomes perl -MDBI -e 'print ::VERSION;' before it gets called. -- Laxminarayan G Kamath A http://lankerisms.blogspot.com http://kamathln.homelinux.net (avail if my laptop is online) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/