Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2002
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Perl Format and carriage returns

    How can I use carriage returns, ^M, in Perl format function?
    Should I put it in the format itself, @<<<<<<^M? Or should it be apart of my text like:
    my $text = "Hello^M";
    @<<<<<<
    $text
    .
    What's the difference between ^M (Ctrl M) and \cM?

    Thanks.

  • #2
    New to the CF scene
    Join Date
    Aug 2002
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Do you understand this line??

    "The remaining whitespace character, \r, forces the printing of a new line if allowed by the picture line."

    I'm trying to put carriage returns in format, but they are being removed. How do I make a picture line allow a carriage return?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •