...
I just write a simple function to read the file line by line.
But when I run it it says out of memory.
I am not sure about the root cause, Can someone help me out of this?
You are **NOT** reading the file line by line. You are storing the entire file contents into an array called @lines. So if your file is huge, the program will run out of memory.
I want to append a decimal number to a string. But I want to restrict the number to only 2 decimal points
for e.g:
my $output = "\n The number is = ";
my $number = 2.3333333;
$output = $output . $number;
But I want the $output as: "The number is = 2.33"; and not 2.3333333
(I do not... (1 Reply)
Hey,
I'm trying to read a file from a server. Simple file with some numbers.
Here is the code i'm running.
use Net::SSH::Perl::SSH1 ;
$scon = Net::SSH::Perl->new ("com123.sever.mydomain.com",(protocol=>'2',port=>'22',debug=>'true'));
$scon->login("user123","pass123");
open(FILE,... (9 Replies)
Hi,
I am new to perl.
I want to read from a file on the basis of some conditions..
I want to define parameters in a configuration file in such a manner like...
etc..
in my perl script, theer is a variable like this..
then i want to read values from first if block from the file... (1 Reply)
Hi there, i have been trying different methods and i wonder if somebody could explain to me how i would perform a comparison on two arrays for example
my @array1 = ("gary" ,"peter", "paul");
my @array2 = ("gary" ,"peter", "joe");
I have two arrays above, and i want to something like this... (5 Replies)
I am totally new to perl. I am modifying someone else's script. I have the following output:
# ./some-perlscript
A
B
C
D
E
B - E, is generated through the print command that I put in the script. I want to remove A, it seems it is generated automatically by a custom OS it is querying when... (3 Replies)
If a form's action is the following Perl script how do I make it print the entire contents of the file on the screen?
if(param())
{
my $uploadedFile = param('file');#in the html page 'file' is the value of the name attribute of the input
my $fh = upload($uploadedFile);
... (1 Reply)
Hello, I have a simple(I think) question!
Although simple, I have been unable to resolve it, so I hope someone can help! OK, here it is:
1)I have an awk script that prints something, such as:
awk '{print $2}' a > x
so x might hold the value of say '10'
2)Now, I just want to check to see if... (4 Replies)
Hello,
I'm completely new to Perl and I'm just looking for a quick answer to some code I'm trying to come up with. I'm trying to access a website, part of the URL I want the user to be able to define via standard input. As you can see below I'm still trying to get the syntax.
... (2 Replies)
Is there a script that will automatically access/count the words in each individual file for a program?
(Sorry, I'm trying to help my girlfriend who's in computer science out, I know nothing about this. We're having trouble wording this question.) (1 Reply)
Discussion started by: Triple M
1 Replies
LEARN ABOUT DEBIAN
vcdxminfo
VCDXMINFO(1) User Commands VCDXMINFO(1)NAME
vcdxminfo - manual page for vcdxminfo 0.7.24
SYNOPSIS
vcdxminfo [OPTION...]
DESCRIPTION -i, --generic-info
show generic information
-a, --dump-aps
dump APS data
--relaxed-aps
relax APS constraints
-o, --output-file=FILE
file for XML output
-p, --progress
show progress
-v, --verbose
be verbose
-q, --quiet
show only critical messages
--gui enable GUI mode
-V, --version
display version and copyright information and exit
Help options:
-?, --help
Show this help message
--usage
Display brief usage message
AUTHOR
Written by Herbert Valerio Riedel and Rocky Bernstein.
http://www.gnu.org/software/vcdimager/
COPYRIGHT
Copyright (C) 2000-2003 Herbert Valerio Riedel <hvr@gnu.org>
2003 Rocky Bernstein <rocky@panix.com>
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
SEE ALSO
The full documentation for vcdxminfo is maintained as a Texinfo manual. If the info and vcdxminfo programs are properly installed at your
site, the command
info vcdxminfo
should give you access to the complete manual.
vcdxminfo 0.7.24 March 2011 VCDXMINFO(1)