Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: adding carriage return to gmail script

by Marshall (Canon)
on Jun 13, 2016 at 14:59 UTC ( [id://1165482]=note: print w/replies, xml ) Need Help??


in reply to adding carriage return to gmail script

I don't use this mailer, but looking at your code, this line: my(@push_list) = glob "*"; , glob returns a list of file names without "\n".

Consider:

#!/usr/bin/perl use strict; use warnings; my (@push_list) = map{"$_\n"} glob "*"; print "@push_list\n";
That would add a "\n" after each file name. Hope that helps, but I'm not sure. Run the code with and without the map.

Update: see post++ by pryrt. I was puzzled by the fact that the single "\n" didn't appear to do anything, hence my uncertainty. The key appears to use <br> instead of "\n".

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1165482]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-03-29 00:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found