Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have a variable $folder,I am trying to convert the value in it into uppercase with '' quotes around it,meaning for example if $folder=data,I want to print 'DATA'.Trying the below ,but it always prints "$FOLDER",how to dechipther the value in it and convert it to uppercase with ' ' wrapped around it
my $up= uc('"$folder"'); print "\n$up"; --->always prints "$FOLDER"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Converting to uppercase and wrapping ''
by wind (Priest) on May 02, 2011 at 04:57 UTC | |
by Anonymous Monk on May 02, 2011 at 05:20 UTC | |
by jwkrahn (Abbot) on May 02, 2011 at 05:29 UTC | |
by wind (Priest) on May 02, 2011 at 07:02 UTC | |
|
Re: Converting to uppercase and wrapping ''
by anonymized user 468275 (Curate) on May 02, 2011 at 12:08 UTC | |
|
Re: Converting to uppercase and wrapping ''
by MoFiddy (Sexton) on May 02, 2011 at 13:52 UTC | |
by Anonymous Monk on May 02, 2011 at 14:12 UTC |