LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-12-2012, 12:34 AM   #1
zahheb
LQ Newbie
 
Registered: Aug 2012
Posts: 29

Rep: Reputation: Disabled
$!


shoudnt there be $! instead of $: at the end of die ??.....
die "Could not open database: $:"


because die sends this message to the default variable $!......

thanks....i just started out with perl so have this doubt..
 
Old 08-12-2012, 04:30 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,356

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
If you mean Perl, then its your choice. I always specify it so that I get the underlying error msg.
If that's a quote from somebody's code, it's probably a typo.
http://perldoc.perl.org/
http://www.perlmonks.org/?node=Tutorials
 
Old 08-12-2012, 10:15 PM   #3
zahheb
LQ Newbie
 
Registered: Aug 2012
Posts: 29

Original Poster
Rep: Reputation: Disabled
yes but should we use $! or $:

Quote:
Originally Posted by chrism01 View Post
If you mean Perl, then its your choice. I always specify it so that I get the underlying error msg.
If that's a quote from somebody's code, it's probably a typo.
http://perldoc.perl.org/
http://www.perlmonks.org/?node=Tutorials
.... whats the difference ??
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off




All times are GMT -5. The time now is 01:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration