The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
PERL: How do i print an associative matrix? foo.bar Shell Programming and Scripting 2 09-28-2007 06:06 AM
perl - why is the shell script executed before the print command? mjays Shell Programming and Scripting 3 09-21-2007 02:49 AM
perl - print to a log file and screen mjays Shell Programming and Scripting 6 08-21-2007 05:34 AM
ls command to print fifo of contents (or perl) jerardfjay Shell Programming and Scripting 1 04-06-2006 11:01 AM
PERL: print if files present perleo Shell Programming and Scripting 2 03-04-2003 11:53 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-02-2005
Registered User
 

Join Date: Jun 2005
Location: india
Posts: 55
Stumble this Post!
perl print command

Hi,

I am running this command in perl

print "this is a test message @1.00 pm\n"

but the output i am getting as

this is a test message .00 pm

pls help, how to get the proper output
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 08-02-2005
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,432
Stumble this Post!
print "this is a test message \@1.00 pm\n";
Reply With Quote
  #3 (permalink)  
Old 08-07-2005
Registered User
 

Join Date: Jun 2005
Posts: 24
Stumble this Post!
or print 'this is a test message @1.00 pm'."\n";

also add "use strict;" to the top of your perl. It will help you find errors like this.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:28 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0