|
by: Premshree Pillai |
last post by:
Hello,
I recently wrote a Perl version of pyAlbum.py -- a
Python script to create an image album from a given
directory -- plAlbum.pl .
It made me realize how easy-to-use Python is.
...
|
by: Xah Lee |
last post by:
© # -*- coding: utf-8 -*-
© # Python
©
© import sys
©
© nn = len(sys.argv)
©
© if not nn==5:
© print "error: %s search_text replace_text in_file out_file" %
sys.argv
|
by: Aaron Powell |
last post by:
I am writing a program for a study I am doing where I must contact several
different organisations stored in a database I compiled, but I need to send
each email one at a time so they don't know...
|
by: Matt Taylor |
last post by:
I have this piece of code:
$/ = ' ';
$test = "abc ";
chomp $test;
print $test;
which prints spaces at the end of the line. Shouldn't chomp strip the spaces
off the end of my scalar $test?
|
by: lnatz |
last post by:
Hi,
Is there an equivalent to the perl command chomp in C? And if there is
no exact equivalent command, how would I go about removing the "\n" at
the end of a stdin?
Thank you,
Natalie
|
|
by: Shawn Milo |
last post by:
I'm new to Python and fairly experienced in Perl, although that
experience is limited to the things I use daily.
I wrote the same script in both Perl and Python, and the output is
identical. The...
|
by: adriaan |
last post by:
I'm having this weird problem with chomp
I want to get all the numbers out of a file that looks like this
1,2
4,3,2
and have the first number point to an array of the others in a hash
I'm almost...
|
by: Matt Herzog |
last post by:
Hey Pythons.
This script works fine except I would like it to NOT print everything on a newline.
How can I tell print to chomp?
Thanks.
------------------------------- snip...
|
by: Timothy Grant |
last post by:
On Fri, Oct 17, 2008 at 3:37 PM, Matt Herzog <msh@blisses.orgwrote:
a ',' on the end of your print should suppress the newline.
.... print 'foo',
.... print 'bar'
....
foo bar
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|