Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Converting output from numeric values to text

by wardk (Deacon)
on Mar 28, 2002 at 21:30 UTC ( #155109=note: print w/replies, xml ) Need Help??


in reply to Converting output from numeric values to text

try
if ( $Month eq 'Jan' ) { $Month = 0; }

PS: this is my "most typical goof", so I caught it easily :)

UPDATE: doh! if ( $Month == 0 ) { $Month = 'Jan'; } ....nevermind

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://155109]
help
Chatterbox?
[james28909]: how can i write a while loop on one line (in a script) something like print "this\n" && print "that" && <DATA> && print the other\n" && next if /this matches/ while <DATA>?

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2018-05-20 18:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?